NWave nw-buddy-project-reading
How the nWave buddy agent reads a project to answer questions — detection, order of inspection, and citation discipline.
git clone https://github.com/nWave-ai/nWave
T=$(mktemp -d) && git clone --depth=1 https://github.com/nWave-ai/nWave "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/nw/skills/nw-buddy-project-reading" ~/.claude/skills/nwave-ai-nwave-nw-buddy-project-reading-aacb24 && rm -rf "$T"
plugins/nw/skills/nw-buddy-project-reading/SKILL.mdProject Reading for the Buddy Agent
The buddy agent answers questions about a project by reading it, not by guessing. Every answer must be traceable to a specific file and line. This skill is the reading protocol.
Goals
- Understand the project's architecture, current state, and methodology enough to answer the user's question.
- Cite every claim (
) so the user can verify.path:line - Avoid reading more than necessary — tokens and time both cost.
- Never invent file contents, function names, or architecture claims.
Order of inspection (cheap first)
Read in this order. Stop as soon as you have enough context for the current question.
1. Project identity (always, <1s)
— what is this project, for whom.README.md
(project root) — how Claude-based tools should behave here.CLAUDE.md
/pyproject.toml
/package.json
/ equivalent — language, dependencies, versions, scripts.Cargo.toml
or the version field in the package manifest.VERSION
These four files tell you the project's name, language, purpose, and roughly how big it is. Skip nothing here.
2. Planning and state
— the single source of truth for planned work (in nWave projects).BACKLOG.md
— recent user-visible changes.CHANGELOG.md
— what's in flight right now.git status
— recent direction of travel.git log --oneline -20
If the user's question is "what should I work on next" or "what did we just do", these four are usually the answer.
3. Architecture documentation
(or similar SSOT file).docs/architecture/architecture-design.md
— Architecture Decision Records.docs/adrs/
— feature specs with wave subdirectories.docs/feature/
The architecture doc is authoritative for design intent. If a claim in the architecture doc contradicts the code, the code is what runs — but the mismatch is itself a finding worth reporting.
4. Source layout
the top-level dirs.ls
(or the project's source root).ls src/- Read the main entry point (
,main.py
,index.ts
, etc.).Main.fs
A project's directory layout tells you 80% of its architecture in a few seconds:
domain/, application/, adapters/, ports/, tests/ means hexagonal. src/, views/, controllers/, models/ means MVC. core/, api/, ui/ means layered.
5. Tests
or equivalent — top-level directories only, initially.tests/
/ test config — tells you how tests are organized and marked.conftest.py- A representative test file from each layer (unit, integration, acceptance, e2e).
Tests often document behavior more precisely than prose docs.
6. Specific files (on demand)
Once the question is clear, read the specific files it touches. Don't pre-load.
Detection heuristics
Answer these as you read:
- Is this a nWave project? Clues:
directory,nWave/
,framework-catalog.yaml
at root, agents/commands/skills layout, mentions of waves in docs.BACKLOG.md - Is this greenfield or brownfield? Clues: git history length, number of commits, presence of legacy folders, CHANGELOG age.
- What language(s)?
,pyproject.toml
,package.json
,.csproj
, etc.build.sbt - What architecture style? Directory names (see section 4 above).
- What test strategy? Marker definitions, CI config, presence of acceptance/e2e folders.
- What's the current branch?
orgit status
. Branch name often encodes the current focus.git branch --show-current - Who owns what?
if present.CODEOWNERS
Record the answers silently; draw on them when answering.
Wave progress detection
When reading a feature to answer "what's next?", check for these wave artifacts in order:
| Wave | Artifact Path | Existence Check |
|---|---|---|
| DIVERGE | | Branch point recommendation exists |
| DISCUSS | | User stories written |
| DESIGN | | Architecture decisions documented |
| DEVOPS | | CI/CD and deployment decisions documented |
| DISTILL | | BDD test scenarios written (the .feature file is the SSOT) |
| DELIVER | | All implementation steps at COMMIT/PASS |
Stop at the first missing artifact — that's where the feature currently is. For features using the old flat model (no wave subdirectories), treat as pre-DIVERGE.
Citation discipline
Every concrete claim in an answer must point to a source:
- "The TDD cycle has 5 phases (
)"src/des/data/workflows/tdd-deliver.yaml:12 - "Hexagonal boundaries defined in
section 3"docs/architecture/architecture-design.md - "Current branch is
(fromfeature/foo
)"git status
If you're paraphrasing, still cite. If you're guessing, say "I don't see this in the files I've read" and stop — don't fabricate.
When a citation would be noise (trivial claims like "this is a Python project"), omit it. When a claim is load-bearing, always cite.
What NOT to do
- Don't read the whole repo. It's expensive and usually unnecessary.
- Don't read generated files.
,node_modules/
,.venv/
,build/
,dist/
, lock files (unless the question is about deps).target/ - Don't read test output or logs as primary sources. They're stale by the time you see them.
- Don't invent file contents when a grep returns nothing. Report "not found" and suggest where it might live.
- Don't answer without reading. If you can't ground the answer in the repo, say so.
Escalation
If the user's question requires reading more than ~15 files, or requires running commands, or touches a part of the codebase you can't reach, say so explicitly. Offer a plan: "to answer this I would need to read X, Y, Z — proceed?"
Example: "what is this project and where are we with it?"
A well-formed answer:
- Read
,README.md
,pyproject.toml
— get the elevator pitch and version.CLAUDE.md - Read
— get the current priorities.BACKLOG.md - Run
+git status
— get the current branch and recent direction.git log --oneline -10 - Synthesize: "This is
v<name>
, a<version>
written in<one-sentence purpose>
. The current branch is<language>
. Recent commits focus on<branch>
. The backlog's top items are<summary>
. (citations for each claim)"<top 3>
Total reading: 4-5 files, under a minute. That's the standard to aim for.