cortexhawk 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/CLAUDE.md +4 -4
- package/commands/chain.md +3 -3
- package/commands/gitignore.md +28 -0
- package/commands/quickstart.md +44 -0
- package/hooks/session-start.sh +20 -1
- package/package.json +1 -1
- package/scripts/install-claude.sh +1 -1
- package/skills/workflow/getting-started/SKILL.md +66 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to CortexHawk are documented here.
|
|
4
4
|
Format: [Keep a Changelog](https://keepachangelog.com/)
|
|
5
5
|
|
|
6
|
+
## [3.4.0] - 2026-02-21
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- `/gitignore` command: analyses `git status`, detects project stack, proposes missing `.gitignore` patterns grouped by category (#155)
|
|
10
|
+
- Enhanced session-start: commands grouped into 6 categories (Develop, Quality, DevOps, Research, Project, Setup) + contextual tip for new/first-time users (#156)
|
|
11
|
+
- `/quickstart` command: detects project state (empty, first-time, returning) and guides user to their first productive action with stack-aware recommendations (#157)
|
|
12
|
+
- `getting-started` skill: golden paths per stack (Node, Python, Rust, Go, empty) + 4-tier command progression for agents to consult on new projects (#158)
|
|
13
|
+
- `onboarding` chain preset: `map,plan,build,test,review` (auto-swaps `map` for `bootstrap` on empty projects) (#159)
|
|
14
|
+
|
|
6
15
|
## [3.3.1] - 2026-02-20
|
|
7
16
|
|
|
8
17
|
### Added
|
package/CLAUDE.md
CHANGED
|
@@ -6,9 +6,9 @@ Open-source development toolkit for Claude Code — optimized agents, skills, co
|
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
agents/ — 20 specialized AI agents
|
|
9
|
-
commands/ —
|
|
9
|
+
commands/ — 37 slash commands
|
|
10
10
|
scripts/ — Validation and post-install audit scripts
|
|
11
|
-
skills/ —
|
|
11
|
+
skills/ — 37 domain-specific knowledge modules
|
|
12
12
|
hooks/ — 11 lifecycle hooks
|
|
13
13
|
modes/ — 7 behavioral presets
|
|
14
14
|
profiles/ — 3 install profiles (fullstack, api, data)
|
|
@@ -49,7 +49,7 @@ Custom agents in `.cortexhawk-agents/` at project root. Each `.md` file uses `ex
|
|
|
49
49
|
|
|
50
50
|
## Commands
|
|
51
51
|
|
|
52
|
-
`/plan` `/build` `/test` `/review` `/review-pr` `/ship` `/commit` `/cleanup` `/debug` `/scan` `/check` `/refactor` `/research` `/doc` `/bootstrap` `/tdd` `/optimize` `/migrate` `/monitor` `/api-gen` `/changelog` `/journal` `/brainstorm` `/simplify` `/deploy` `/export` `/backlog` `/pulse` `/map` `/learn` `/chain` `/task` `/ci` `/context` `/upgrade`
|
|
52
|
+
`/quickstart` `/plan` `/build` `/test` `/review` `/review-pr` `/ship` `/commit` `/cleanup` `/gitignore` `/debug` `/scan` `/check` `/refactor` `/research` `/doc` `/bootstrap` `/tdd` `/optimize` `/migrate` `/monitor` `/api-gen` `/changelog` `/journal` `/brainstorm` `/simplify` `/deploy` `/export` `/backlog` `/pulse` `/map` `/learn` `/chain` `/task` `/ci` `/context` `/upgrade`
|
|
53
53
|
|
|
54
54
|
## Skills
|
|
55
55
|
|
|
@@ -61,7 +61,7 @@ Custom agents in `.cortexhawk-agents/` at project root. Each `.md` file uses `ex
|
|
|
61
61
|
- **Meta**: mcp-builder, skill-creator
|
|
62
62
|
- **Frameworks**: api-design, fastapi, nextjs, react, sveltekit, tailwindcss, typescript, python
|
|
63
63
|
- **Optimization**: performance
|
|
64
|
-
- **Workflow**: commit, confidence-check, pr-review-comments
|
|
64
|
+
- **Workflow**: commit, confidence-check, getting-started, pr-review-comments
|
|
65
65
|
|
|
66
66
|
## Modes
|
|
67
67
|
|
package/commands/chain.md
CHANGED
|
@@ -7,13 +7,13 @@ description: Sequential agent execution with context passing via docs/chains/.
|
|
|
7
7
|
|
|
8
8
|
Execute a declared sequence of agents with automatic context passing. Topic: `$ARGUMENTS`
|
|
9
9
|
|
|
10
|
-
**Built-in presets**: `default` = plan,build,test,review | `security` = scan,review | `ship` = test,review,ship
|
|
10
|
+
**Built-in presets**: `default` = plan,build,test,review | `security` = scan,review | `ship` = test,review,ship | `onboarding` = map,plan,build,test,review (if project empty: bootstrap replaces map)
|
|
11
11
|
|
|
12
12
|
**Custom presets**: Define in `.cortexhawk-chains.yml` at project root — custom presets override built-in presets with the same name
|
|
13
13
|
|
|
14
14
|
**Flags**: `--gate` = pause between steps | `--copy` = physical copy to plans/ | `--replay <slug>` = re-run a previous chain | `--browse` = list all available presets + recent chains
|
|
15
15
|
|
|
16
|
-
**Mapping**: plan=planner, build=implementer, test=tester, review=reviewer, scan=security-auditor, debug=debugger, doc=docs-manager, ship=git-manager, refactor=code-simplifier, research=researcher
|
|
16
|
+
**Mapping**: plan=planner, build=implementer, test=tester, review=reviewer, scan=security-auditor, debug=debugger, doc=docs-manager, ship=git-manager, refactor=code-simplifier, research=researcher, map=codebase-mapper, bootstrap=architect
|
|
17
17
|
|
|
18
18
|
0. Read `_shared.md` for project context
|
|
19
19
|
1. If `--replay <slug>`: find most recent `docs/chains/*-<slug>/SUMMARY.md`, extract sequence from "## Sequence" line (e.g., `plan → build → test → review`), use as agent list with fresh context. Error if slug not found.
|
|
@@ -41,7 +41,7 @@ When detected in a step's output:
|
|
|
41
41
|
## Browse mode (`--browse`)
|
|
42
42
|
|
|
43
43
|
List all available chains from 3 sources:
|
|
44
|
-
1. **Built-in presets** — default, security, ship (table: name, sequence, description)
|
|
44
|
+
1. **Built-in presets** — default, security, ship, onboarding (table: name, sequence, description)
|
|
45
45
|
2. **Custom presets** — read `.cortexhawk-chains.yml` if present (table: name, sequence, description, gate)
|
|
46
46
|
3. **Recent chains** — scan `docs/chains/*/SUMMARY.md`, extract date/slug/sequence/result (table: date, slug, sequence, status — last 10)
|
|
47
47
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitignore
|
|
3
|
+
description: Analyze git status and update .gitignore with missing patterns.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /gitignore
|
|
7
|
+
|
|
8
|
+
Activate the **git-manager** agent. Scope: `$ARGUMENTS`
|
|
9
|
+
|
|
10
|
+
1. Run `git status --porcelain` to list untracked files
|
|
11
|
+
2. Detect project stack from manifest files (package.json, requirements.txt, Cargo.toml, go.mod, *.csproj, etc.)
|
|
12
|
+
3. Compare untracked files against known patterns for the detected stack:
|
|
13
|
+
- **Node**: node_modules/, dist/, build/, .next/, coverage/, *.tsbuildinfo
|
|
14
|
+
- **Python**: __pycache__/, *.pyc, .venv/, .egg-info/, .mypy_cache/
|
|
15
|
+
- **Rust**: target/
|
|
16
|
+
- **Go**: vendor/ (if not committed)
|
|
17
|
+
- **General**: .DS_Store, *.log, .env, .env.local, *.swp, thumbs.db
|
|
18
|
+
4. Read existing `.gitignore` — skip patterns already present
|
|
19
|
+
5. Present proposed additions grouped by category, ask for confirmation
|
|
20
|
+
6. Append confirmed patterns to `.gitignore` (preserve existing structure)
|
|
21
|
+
|
|
22
|
+
## Rules
|
|
23
|
+
|
|
24
|
+
- Never auto-commit — user decides when to commit
|
|
25
|
+
- If `.gitignore` doesn't exist, create it with detected patterns
|
|
26
|
+
- If no untracked files need ignoring, report "`.gitignore` is up to date" and stop
|
|
27
|
+
- Respect existing sections/comments in `.gitignore` — append, don't rewrite
|
|
28
|
+
- If `$ARGUMENTS` is a path, scope analysis to that directory only
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quickstart
|
|
3
|
+
description: Detect project state and guide the user to their first productive action.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /quickstart
|
|
7
|
+
|
|
8
|
+
Analyze the current project and guide the user to their first productive CortexHawk action.
|
|
9
|
+
|
|
10
|
+
## Detection
|
|
11
|
+
|
|
12
|
+
1. Count non-hidden files in current directory
|
|
13
|
+
2. Detect project markers: package.json, pyproject.toml, Cargo.toml, go.mod, Gemfile, *.csproj
|
|
14
|
+
3. Detect stack: language, framework, test runner, CI config
|
|
15
|
+
4. Check for CortexHawk artifacts: docs/plans/, docs/chains/, docs/brainstorms/
|
|
16
|
+
|
|
17
|
+
## Scenarios
|
|
18
|
+
|
|
19
|
+
**Empty project** (< 3 non-hidden files, no project markers):
|
|
20
|
+
- "This looks like a new project."
|
|
21
|
+
- Recommend: `/bootstrap` to create project structure, or `/bootstrap --smart` to auto-detect goals
|
|
22
|
+
- Show golden path: `/bootstrap` → `/plan` → `/build` → `/test` → `/review`
|
|
23
|
+
|
|
24
|
+
**Existing project, first CortexHawk session** (project markers exist, no CortexHawk artifacts):
|
|
25
|
+
- Display detected stack (language, framework, test runner)
|
|
26
|
+
- List the 5 most relevant commands for this stack with 1-line descriptions
|
|
27
|
+
- Recommend: `/plan <next feature>` to start, or `/map` to understand the codebase first
|
|
28
|
+
- Mention: `/scan` for a security audit, `/pulse` for project health
|
|
29
|
+
|
|
30
|
+
**Returning user** (CortexHawk artifacts exist):
|
|
31
|
+
- Show last plan or chain if available, backlog summary (active/done counts)
|
|
32
|
+
- Recommend: `/pulse` for health dashboard, `/backlog` to pick next task, `/task #N` to execute
|
|
33
|
+
|
|
34
|
+
**Specific question** ($ARGUMENTS is a question about CortexHawk):
|
|
35
|
+
- Map the question to the relevant command, agent, or skill
|
|
36
|
+
- Show usage example and what it does
|
|
37
|
+
|
|
38
|
+
## Rules
|
|
39
|
+
|
|
40
|
+
- Never generate code — only recommend commands
|
|
41
|
+
- Max 20 lines of output — conciseness over completeness
|
|
42
|
+
- Always show the golden path for new projects: bootstrap → plan → build → test → review
|
|
43
|
+
- If in doubt, recommend `/plan` — it is the safest starting point
|
|
44
|
+
- If $ARGUMENTS is empty, detect scenario automatically
|
package/hooks/session-start.sh
CHANGED
|
@@ -132,4 +132,23 @@ if [ -d "$SKILL_DIR" ]; then
|
|
|
132
132
|
fi
|
|
133
133
|
|
|
134
134
|
echo ""
|
|
135
|
-
echo "Commands:
|
|
135
|
+
echo "Commands:"
|
|
136
|
+
echo " Develop /quickstart /plan /build /test /review /ship /commit /debug"
|
|
137
|
+
echo " Quality /scan /check /tdd /refactor /simplify /optimize"
|
|
138
|
+
echo " DevOps /deploy /ci /monitor /cleanup /migrate /gitignore"
|
|
139
|
+
echo " Research /research /brainstorm /learn /map"
|
|
140
|
+
echo " Project /backlog /pulse /task /chain /journal /changelog"
|
|
141
|
+
echo " Setup /bootstrap /context /export /upgrade /doc /api-gen /review-pr"
|
|
142
|
+
|
|
143
|
+
# Contextual tip for new/first-time users
|
|
144
|
+
FILE_COUNT=$(find . -maxdepth 1 -not -name '.*' -not -name 'node_modules' -type f 2>/dev/null | wc -l | tr -d ' ')
|
|
145
|
+
HAS_ARTIFACTS=false
|
|
146
|
+
{ [ -d "docs/plans" ] || [ -d "docs/chains" ]; } && HAS_ARTIFACTS=true
|
|
147
|
+
|
|
148
|
+
if [ "$FILE_COUNT" -lt 3 ]; then
|
|
149
|
+
echo ""
|
|
150
|
+
echo "Tip: New project? Run /quickstart or /bootstrap"
|
|
151
|
+
elif [ "$HAS_ARTIFACTS" = false ]; then
|
|
152
|
+
echo ""
|
|
153
|
+
echo "Tip: First time? Run /quickstart for a guided start"
|
|
154
|
+
fi
|
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ else:
|
|
|
171
171
|
echo ""
|
|
172
172
|
echo "CortexHawk installed successfully for Claude Code!"
|
|
173
173
|
echo ""
|
|
174
|
-
echo "
|
|
174
|
+
echo " 37 commands | 20 agents | 37 skills | 11 hooks | 7 modes"
|
|
175
175
|
echo ""
|
|
176
176
|
do_quickstart
|
|
177
177
|
echo ""
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: getting-started
|
|
3
|
+
description: Golden paths and command progression for new CortexHawk users.
|
|
4
|
+
detect: base
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Getting Started
|
|
8
|
+
|
|
9
|
+
## Golden Paths
|
|
10
|
+
|
|
11
|
+
### Empty project
|
|
12
|
+
1. `/bootstrap` → create structure, configs, CI
|
|
13
|
+
2. `/plan <first feature>` → task breakdown
|
|
14
|
+
3. `/build` → implement the plan
|
|
15
|
+
4. `/test` → generate test suite
|
|
16
|
+
5. `/review` → quality check before commit
|
|
17
|
+
|
|
18
|
+
### Node.js / TypeScript
|
|
19
|
+
1. `/map` → understand codebase structure
|
|
20
|
+
2. `/scan` → security audit (npm audit + OWASP)
|
|
21
|
+
3. `/plan <feature>` → plan next feature
|
|
22
|
+
4. `/build` → implement
|
|
23
|
+
5. `/test` → add/update tests with Jest/Vitest
|
|
24
|
+
|
|
25
|
+
### Python
|
|
26
|
+
1. `/map` → understand codebase
|
|
27
|
+
2. `/check` → code quality (flake8, mypy)
|
|
28
|
+
3. `/plan <feature>` → plan next feature
|
|
29
|
+
4. `/build` → implement
|
|
30
|
+
5. `/tdd` → test-driven with pytest
|
|
31
|
+
|
|
32
|
+
### Rust / Go
|
|
33
|
+
1. `/map` → understand codebase
|
|
34
|
+
2. `/scan` → dependency audit (cargo audit / govulncheck)
|
|
35
|
+
3. `/plan <feature>` → plan next feature
|
|
36
|
+
4. `/build` → implement
|
|
37
|
+
5. `/test` → add tests
|
|
38
|
+
|
|
39
|
+
## Command Tiers
|
|
40
|
+
|
|
41
|
+
| Tier | Commands | When |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| Essential | `/plan` `/build` `/test` `/review` `/commit` | Every session |
|
|
44
|
+
| Quality | `/scan` `/check` `/refactor` `/tdd` `/debug` `/simplify` | Before shipping |
|
|
45
|
+
| Workflow | `/chain` `/task` `/backlog` `/pulse` `/ship` `/cleanup` | Team/project mgmt |
|
|
46
|
+
| Advanced | `/brainstorm` `/research` `/optimize` `/migrate` `/deploy` `/ci` | Specialized needs |
|
|
47
|
+
|
|
48
|
+
## Stack Detection
|
|
49
|
+
|
|
50
|
+
| Marker | Stack |
|
|
51
|
+
|---|---|
|
|
52
|
+
| `package.json` | Node.js |
|
|
53
|
+
| `tsconfig.json` | TypeScript |
|
|
54
|
+
| `next.config.*` | Next.js |
|
|
55
|
+
| `svelte.config.*` | SvelteKit |
|
|
56
|
+
| `tailwind.config.*` | Tailwind CSS |
|
|
57
|
+
| `requirements.txt` / `pyproject.toml` | Python |
|
|
58
|
+
| `Cargo.toml` | Rust |
|
|
59
|
+
| `go.mod` | Go |
|
|
60
|
+
| `Gemfile` | Ruby |
|
|
61
|
+
| `*.csproj` | .NET |
|
|
62
|
+
|
|
63
|
+
## Rules
|
|
64
|
+
- When project has no `docs/plans/` or `docs/chains/`, agent should mention `/quickstart`
|
|
65
|
+
- Recommend `/plan` as default safe starting point for any stack
|
|
66
|
+
- Never skip the test step — always include `/test` or `/tdd` in recommendations
|