/navigator:nav-taskfrom navigator
Creates implementation plans and archives completed tasks for Navigator projects. Generates task IDs, writes documentation capturing what was built and why, and updates the task index.
Ships in navigator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create and manage task documentation - implementation plans that capture what was built, how, and why.
Invoke this skill when the user:
DO NOT invoke if:
If user provided task ID (e.g., "TASK-01", "GH-123"):
If no ID provided, run the generator — it reads task_id_source from
.agent/.nav-config.json (default local):
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
python3 "$PLUGIN_DIR/skills/nav-task/functions/task_id_generator.py" \
--title "{feature name}" --body "{one-line summary}" --json
task_id_source: local (solo repos) — next sequential {task_prefix}-NN from
.agent/tasks/ (last is TASK-05 → TASK-06). --title is ignored. The number is
the max over the working tree, tasks/archive/ and origin/main (fetched first; a
failing fetch falls back to the local two with a note). Open remote branches are not
scanned: when two sessions plan at once, the second to push renumbers.task_id_source: github (team repos, GH-32) — creates the GitHub issue first via
gh issue create and returns GH-<n>; the doc is .agent/tasks/GH-<n>-{slug}.md.
Issue numbers are allocated by GitHub, so two contributors branching at once can
never mint the same ID, and Pilot already addresses tasks as GH-<n>. Add
--label pilot (or any label) when the issue should be picked up. A failing gh
(no auth, no network) is an error — do not fall back to a local number; tell the
user and stop.TASK-NN docs keep working either way; the index, graph sync and
session-start listing accept any PREFIX-<n> filename.TASK-{XX} stands for whichever ID came back.Creating new task (starting feature):
User: "Create task doc for OAuth implementation"
→ Action: CREATE
→ Generate empty implementation plan template
Archiving completed task (feature done):
User: "Document this OAuth feature I just built"
→ Action: ARCHIVE
→ Generate implementation plan from conversation
Before writing the plan, query the knowledge graph for memories relevant to this feature — pitfalls and patterns the project has already paid for:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
if [ -f ".agent/knowledge/graph.json" ]; then
python3 "$PLUGIN_DIR/skills/nav-graph/functions/memory_recall.py" \
--concepts "{comma-separated concepts inferred from the feature description}" \
--format markdown --limit 5
fi
task_to_graph.extract_concepts_from_task (auth, database,
api, frontend, testing, …) — alias resolution absorbs abbreviations.## Known Pitfalls & Patterns
section in the template below, and reflect each recalled pitfall in
the Implementation phases (a recalled pitfall that doesn't change the
plan wasn't really factored in).Generate task document from template:
# TASK-{XX}: {Feature Name}
**Status**: 🚧 In Progress
**Created**: {YYYY-MM-DD}
**Assignee**: {from PM tool or "Manual"}
---
## Context
**Problem**:
[What problem does this solve?]
**Goal**:
[What are we building?]
---
## Known Pitfalls & Patterns
<!-- From knowledge graph (Step 2.5). OMIT this section entirely if recall
returned nothing. Each recalled pitfall must be reflected in the
Implementation phases below. -->
- **PITFALL** (90%, mem-XXX): [recalled summary]
---
## Acceptance Criteria
Concrete, checkable outcomes — written so anyone (human or AI) can verify them.
- [ ] [Specific, observable outcome]
- [ ] [Another outcome]
- [ ] [Edge case handled]
---
## Route
<!-- The route in plain words: one line per step, no internal codes, no state words (the
state comes from GitHub and the checkboxes). A trailing parenthesis holds the ticket
(#12), "operator" for a step a person does, and "needs 1, 2". Read by nav-route and
the /nav pane. Phases below hold the technical detail. -->
### Phase 1: {Name}
- [ ] 1. [What this step does, in plain words]
- [ ] 2. [What the next step does] (needs 1)
### Side tracks
- [ ] [Work outside the main route]
### Waits for you
- [ ] [A decision or an action for the user]
---
## Implementation
### Phase 1: {Name}
**Goal**: [What this phase accomplishes]
**Tasks**:
- [ ] [Specific task]
- [ ] [Another task]
**Files**:
- `path/to/file.ts` - [Purpose]
### Phase 2: {Name}
...
---
## Out of Scope
Explicit non-goals — what this task deliberately does not address.
- [What's deferred to a future task]
- [Adjacent change being avoided]
---
## Technical Decisions
| Decision | Options Considered | Chosen | Reasoning |
|----------|-------------------|--------|-----------|
| [What] | [Option A, B, C] | [Chosen] | [Why] |
---
## Verify
Run these commands to validate the implementation:
```bash
# Run tests
[test command for this feature]
# Type check
[type check command]
# Build
[build command]
Observable outcomes that prove completion:
[Any additional context, links, references]
Last Updated: {YYYY-MM-DD}
Save to: `.agent/tasks/TASK-{XX}-{slug}.md`
### Step 3B: Archive Completed Task (If Feature Done)
Generate task document from conversation:
1. **Analyze conversation** (last 30-50 messages):
- What was built?
- How was it implemented?
- What decisions were made?
- What files were modified?
2. **Generate implementation plan**:
```markdown
# TASK-{XX}: {Feature Name}
**Status**: ✅ Completed
**Created**: {YYYY-MM-DD}
**Completed**: {YYYY-MM-DD}
---
## What Was Built
[1-2 paragraph summary of the feature]
---
## Implementation
### Phase 1: {Actual phase completed}
**Completed**: {Date}
**Changes**:
- Created `src/auth/oauth.ts` - OAuth provider integration
- Modified `src/routes/auth.ts` - Added login/logout endpoints
- Updated `src/config/passport.ts` - Passport configuration
**Key Code**:
```typescript
// Example of key implementation
export const oauthLogin = async (req, res) => {
// Implementation details
};
...
| Decision | Options | Chosen | Reasoning |
|---|---|---|---|
| Auth library | next-auth, passport.js, auth0 | passport.js | Better control over OAuth flow, smaller bundle |
| Token storage | localStorage, cookies, sessionStorage | httpOnly cookies | XSS protection, automatic transmission |
| Session store | memory, Redis, PostgreSQL | Redis | Fast, scalable, separate from DB |
src/auth/oauth.ts (created) - OAuth integrationsrc/routes/auth.ts (modified) - Added auth endpointssrc/config/passport.ts (created) - Passport setuptests/auth.test.ts (created) - Auth testsREADME.md (updated) - OAuth setup instructionsChallenge: OAuth callback URL mismatch
Challenge: Session persistence across restarts
src/auth/*.test.ts (15 tests, 100% coverage).env.exampledocs/api.mdCommands executed to validate:
# Actual commands run during verification
npm test src/auth
npm run type-check
npm run build
Results: All passed ✅
Outcomes confirmed:
src/auth/oauth.ts exports OAuth provider integrationSOPs Created:
.agent/sops/integrations/oauth-setup.mdSystem Docs Updated:
.agent/system/project-architecture.md (added auth section)Completed: {YYYY-MM-DD} Implementation Time: {X hours/days}
Save to: `.agent/tasks/TASK-{XX}-{slug}.md`
### Step 3.5: Verify Interpretation (ToM Checkpoint - Archive Mode Only) [EXECUTE]
**IMPORTANT**: This step MUST be executed when archiving tasks (not creating new ones).
**Before committing archive documentation, confirm interpretation with user**.
**Display verification** (only for ARCHIVE action):
I extracted this from our session: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What was built:
Key decisions captured:
Files changed: {COUNT} total
Challenges solved:
Corrections needed? [Enter to proceed / type corrections]
**Always verify for ARCHIVE** because:
- Extracting from conversation is inference-based
- User may have made decisions not explicitly stated
- Some files may have been modified outside conversation
- Ensures accurate historical record
**Skip verification for CREATE** because:
- Template is mostly empty
- User fills in details themselves
- No inference risk
### Step 4: Update Navigator Index
Edit `.agent/DEVELOPMENT-README.md` to add task to index:
```markdown
## Active Tasks
- **TASK-{XX}**: {Feature Name} (Status: In Progress/Completed)
- File: `.agent/tasks/TASK-{XX}-{slug}.md`
- Started: {Date}
- [Completed: {Date}]
Keep index organized (active tasks first, completed below).
If knowledge graph exists, sync task to graph:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
if [ -f ".agent/knowledge/graph.json" ]; then
python3 "$PLUGIN_DIR/skills/nav-graph/functions/task_to_graph.py" \
--action add \
--task-path ".agent/tasks/TASK-{XX}-{slug}.md" \
--graph-path .agent/knowledge/graph.json
fi
What this does:
implements edges from task to conceptsdecision memoriesOutput:
Added task: TASK-XX
Title: {Feature Name}
Status: completed
Concepts: auth, api, testing
Decisions extracted: 2
This makes the task queryable via "What do we know about auth?" and preserves architectural decisions as persistent memories.
If PM tool is Linear:
create_comment({
issueId: "TASK-XX",
body: "📚 Implementation plan documented: .agent/tasks/TASK-XX-feature.md"
})
If PM tool is GitHub:
gh issue comment {ISSUE-NUMBER} -b "📚 Implementation plan: .agent/tasks/TASK-XX-feature.md"
If PM tool is none: Skip PM update.
Show completion message:
✅ Task documentation created!
Task: TASK-{XX} - {Feature Name}
File: .agent/tasks/TASK-{XX}-{slug}.md
Size: {X} KB (~{Y} tokens)
📋 Contains:
- Implementation phases
- Technical decisions
- Files modified
- [If archived: Challenges & solutions]
- [If archived: Testing & documentation]
🔗 Navigator index updated
[If PM tool: PM tool comment added]
To reference later:
Read .agent/tasks/TASK-{XX}-{slug}.md
- [ ] checkable outcomes)operator and needs in a trailing
parenthesis; no state words — skills/nav-route/examples/route-section.md)User: "Create task doc for payments integration"
→ Generates TASK-07-payments.md
→ Empty template for planning
→ User fills in as they work
User: "Document the auth feature I just finished"
→ Analyzes conversation
→ Generates TASK-06-auth.md
→ Complete implementation record
→ Archives for future reference
User: "Update TASK-05 with OAuth decision"
→ Reads existing TASK-05-auth.md
→ Adds to Technical Decisions section
→ Preserves rest of document
Navigator not initialized:
❌ .agent/tasks/ directory not found
Run /nav:init to set up Navigator structure first.
Task ID already exists (for creation):
⚠️ TASK-{XX} already exists
Options:
1. Read existing task
2. Use different ID
3. Archive/overwrite existing
Your choice [1-3]:
Insufficient context to archive:
⚠️ Not enough conversation context to generate implementation plan
Consider:
- Provide more details about what was built
- Manually create task doc
- Skip archiving
Continue with template? [y/N]:
Task documentation is successful when:
.agent/tasks/TASK-{XX}-{slug}.mdgenerate_task.py: Create task documentation from conversation
update_index.py: Update DEVELOPMENT-README.md task index
Good task slugs:
oauth-implementation (descriptive)stripe-payment-flow (clear purpose)user-profile-page (specific feature)Bad task slugs:
feature (too vague)fix (not descriptive)task1 (meaningless)When to create task docs:
Task docs are living documents:
They serve as:
This skill provides same functionality as /nav:doc feature command but with natural language invocation.
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/backend-endpointCreate REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add route"./backend-testGenerate backend tests (unit, integration, mocks) for existing code. Auto-invoke when user says "write test for", "add test", "test this", or "create test"./database-migrationCreate database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database".npx claudepluginhub qf-studio/navigator --plugin navigatorOther plugins' skills for the same job