backend-endpoint
Create REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add…
Initialize Navigator documentation structure in a project. Auto-invokes when user says "Initialize Navigator", "Set up Navigator", "Create Navigator structure", or "Bootstrap Navigator".
$ npx -y skills add alekspetrov/navigator --skill nav-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/nav-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Initialize Navigator documentation structure in a project. Auto-invokes when user says "Initialize Navigator", "Set up Navigator", "Create Navigator structure", or "Bootstrap Navigator".
name: nav-init description: Initialize Navigator documentation structure in a project. Auto-invokes when user says "Initialize Navigator", "Set up Navigator", "Create Navigator structure", or "Bootstrap Navigator". allowed-tools: Write, Bash, Read, Glob version: 1.0.0 triggers: - "initialize navigator" - "init navigator" - "set up navigator" - "setup navigator" - "create navigator structure" - "bootstrap navigator" - "start navigator project"
Creates the Navigator documentation structure (`.agent/`) in a new project, copies templates, and sets up initial configuration.
1. **Checks if already initialized**: Prevents overwriting existing structure 2. **Creates `.agent/` directory structure**:
.agent/
├── DEVELOPMENT-README.md
├── .nav-config.json
├── tasks/
├── system/
├── sops/
│ ├── integrations/
│ ├── debugging/
│ ├── development/
│ └── deployment/
└── grafana/
├── docker-compose.yml
├── prometheus.yml
├── grafana-datasource.yml
├── grafana-dashboards.yml
├── navigator-dashboard.json
└── README.md3. **Copies templates**: DEVELOPMENT-README.md, config, Grafana setup 5. **Auto-detects project info**: Name, tech stack (from package.json if available) 6. **Updates CLAUDE.md**: Adds Navigator-specific instructions to project 7. **Creates .gitignore entries**: Excludes temporary Navigator files
if [ -d ".agent" ]; then
echo "✅ Navigator already initialized in this project"
echo ""
echo "To start a session: 'Start my Navigator session'"
echo "To view documentation: Read .agent/DEVELOPMENT-README.md"
exit 0
fiRead `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, or similar to extract:
**Fallback**: Use current directory name if no config found.
Use Write tool to create:
.agent/ .agent/tasks/ .agent/system/ .agent/sops/integrations/ .agent/sops/debugging/ .agent/sops/development/ .agent/sops/deployment/ .agent/grafana/
Copy from plugin's `templates/` directory to `.agent/`:
**DEVELOPMENT-README.md**:
**`.nav-config.json`**:
{
"version": "5.5.0",
"project_name": "${PROJECT_NAME}",
"tech_stack": "${TECH_STACK}",
"project_management": "none",
"task_prefix": "TASK",
"team_chat": "none",
"auto_load_navigator": true,
"compact_strategy": "conservative",
"auto_update": {
"enabled": true,
"check_interval_hours": 1
}
}**Grafana Setup**: Copy all Grafana dashboard files to enable metrics visualization:
# Find plugin installation directory
PLUGIN_DIR="${HOME}/.claude/plugins/marketplaces/navigator-marketplace"
# Copy Grafana files if plugin has them
if [ -d "${PLUGIN_DIR}/.agent/grafana" ]; then
cp -r "${PLUGIN_DIR}/.agent/grafana/"* .agent/grafana/
echo "✓ Grafana dashboard installed"
else
echo "⚠️ Grafana files not found in plugin"
fiFiles copied:
If `CLAUDE.md` exists:
If `CLAUDE.md` doesn't exist:
**Navigator's lifecycle hooks ship with the plugin manifest** (`.claude-plugin/plugin.json`'s top-level `hooks` field) starting v6.13.0+. They are *not* merged into the project's `.claude/settings.json` — Claude Code only substitutes `${CLAUDE_PLUGIN_ROOT}` for hooks declared in a plugin manifest, so merging them into user settings (the prior approach) produced broken commands like `/hooks/X.py`.
The plugin registers the following hooks automatically when the plugin is installed:
1. **SessionStart** — injects Navigator context (navigator + active marker + config + graph + profile) into the session, eliminating ~6 Read tool calls at start (v6.9.0+) 2. **PreCompact** — writes a context marker before manual or silent auto-compact (v6.10.0+) 3. **PostCompact** — appends Claude Code's compact summary to the marker (v6.10.0+) 4. **Stop** — silent workflow-state writer; records whether WORKFLOW CHECK / NAVIGATOR_STATUS appeared (v6.11.0+) 5. **UserPromptSubmit** — prompt_gate + prompt_brief ops (Loop/Task mode trigger detection + optional strict_block gate; intent-brief injection) 6. **PreToolUse(Read)** — read_guard op (bulk-read circuit breaker) 7. **PostToolUse(Edit|Write|Bash)** — token monitor (warns at 70% / 85% context usage) 8. **PostToolUse(Edit|Write)** — task→graph sync and profile correction sync (v6.11.0+)
**Nothing for nav-init to do here.** The skill no longer writes to `.claude/settings.json` for hooks.
⚠️ RESTART REQUIRED to activate hooks after plugin install/update. Claude Code caches plugin manifest hooks at session start.
**Opt-out**: Users can disable any hook via `.agent/.nav-config.json`:
{
"session_start_hook": { "enabled": false },
"compact_hook": { "enabled": false },
"workflow_state_hook": { "enabled": false },
"task_graph_sync_hook": { "enabled": false },
"profile_sync_hook":Finish What You Start Sessions that last. AI that learns. Features that ship.
Repo: alekspetrov/navigator
Create REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add…
Generate backend tests (unit, integration, mocks) for existing code. Auto-invoke when user says "write test for", "add test", "test this", or "create test".
Create database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database".
Create React/Vue component with TypeScript, tests, and styles. Auto-invoke when user says "create component", "add component", "new component", or "build…
Generate frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components. Auto-invoke when user says "test this component",…
Render a one-screen intent brief (Goal/Scope/Approach/Limits/Verify/Won't-do/Contradiction) before implementing ambiguous task-shaped prompts, triggered by the…