From fstack
Document codebase as-is via parallel sub-agents. Use when researching how code works, mapping architecture, or answering questions about existing systems. Auto-detects thoughts/ directory — if present, integrates historical context and syncs; if absent, skips those steps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fstack:research-codebaseThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Comprehensive codebase research via parallel sub-agents. **Document what EXISTS — no improvements, no critique.**
Comprehensive codebase research via parallel sub-agents. Document what EXISTS — no improvements, no critique.
For code file exploration, prefer smart-explore tools (4-18x token savings):
| Tool | Use instead of |
|---|---|
smart_search(query, path) — discover files + symbols in one call | Glob + Grep discovery loop |
smart_outline(file_path) — structural skeleton (~1-2k tokens) | Read on files > 100 lines |
smart_unfold(file_path, symbol_name) — one symbol's full source | Read on large files for one function |
Rule: Use Read only for files < 100 lines or non-code files (markdown, JSON, config).
I'm ready to research the codebase. Please provide your research question or area of interest.
For code files > 100 lines, prefer smart_outline + smart_unfold over Read.
For small files, config, or markdown: use Read directly.
test -d thoughts && echo "has_thoughts" || echo "no_thoughts"
This determines which agents to spawn and whether to sync.
Always spawn:
If thoughts/ exists, also spawn:
Wait for ALL sub-agents to complete before synthesizing.
If shared/scripts/spec_metadata.sh is accessible:
bash ../../shared/scripts/spec_metadata.sh
Otherwise:
date && git log --oneline -1 && git branch --show-current
If thoughts/ exists: thoughts/shared/research/YYYY-MM-DD[-ENG-XXXX]-description.md
Otherwise: choose an appropriate path in the project
---
date: [ISO datetime with timezone]
git_commit: [hash]
branch: [branch]
repository: [repo]
topic: "[research topic]"
tags: [research, codebase, component-names]
status: complete
last_updated: [YYYY-MM-DD]
---
# Research: [Topic]
## Research Question
## Summary
## Detailed Findings
### [Component 1]
- What exists (file:line)
## Code References
- `path/to/file:123` - Description
## Architecture Documentation
## Historical Context (from thoughts/)
[Only if thoughts/ exists]
- `thoughts/shared/something.md` - Historical decision about X
## Open Questions
If humanlayer is available:
humanlayer thoughts sync
Present concise summary with key file references. Ask for follow-up questions.
thoughts/searchable/allison/... → thoughts/allison/... (remove only "searchable/")npx claudepluginhub fredrick84823/fstack --plugin fstackGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.