@allthingsclaude/blueprints 0.3.0-beta.2 → 0.3.0-beta.20
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/README.md +72 -7
- package/content/agents/a11y.md +402 -0
- package/content/agents/audit.md +5 -5
- package/content/agents/bootstrap.md +31 -9
- package/content/agents/changelog.md +350 -0
- package/content/agents/cleanup.md +3 -1
- package/content/agents/commit.md +235 -0
- package/content/agents/debug.md +1 -1
- package/content/agents/diagram.md +365 -0
- package/content/agents/docs.md +344 -0
- package/content/agents/dry.md +7 -5
- package/content/agents/explain.md +195 -0
- package/content/agents/finalize.md +13 -10
- package/content/agents/handoff.md +6 -6
- package/content/agents/i18n.md +388 -0
- package/content/agents/imagine.md +2 -2
- package/content/agents/implement.md +38 -14
- package/content/agents/migrate.md +330 -0
- package/content/agents/onboard.md +479 -0
- package/content/agents/parallelize.md +21 -10
- package/content/agents/plan.md +108 -21
- package/content/agents/refactor.md +10 -62
- package/content/agents/release.md +502 -0
- package/content/agents/research-codebase.md +160 -18
- package/content/agents/research-docs.md +135 -19
- package/content/agents/research-web.md +149 -19
- package/content/agents/secure.md +351 -0
- package/content/agents/showcase.md +333 -0
- package/content/agents/storyboard.md +4 -4
- package/content/agents/test.md +2 -2
- package/content/agents/update.md +347 -0
- package/content/commands/a11y.md +49 -0
- package/content/commands/audit.md +4 -2
- package/content/commands/auto.md +386 -0
- package/content/commands/bootstrap.md +1 -1
- package/content/commands/brainstorm.md +84 -12
- package/content/commands/challenge.md +7 -0
- package/content/commands/changelog.md +50 -0
- package/content/commands/cleanup.md +3 -1
- package/content/commands/commit.md +45 -0
- package/content/commands/critique.md +7 -0
- package/content/commands/debug.md +1 -1
- package/content/commands/diagram.md +51 -0
- package/content/commands/docs.md +48 -0
- package/content/commands/dry.md +3 -1
- package/content/commands/explain.md +12 -309
- package/content/commands/finalize.md +2 -2
- package/content/commands/flush.md +6 -7
- package/content/commands/handoff.md +1 -1
- package/content/commands/i18n.md +53 -0
- package/content/commands/implement.md +4 -4
- package/content/commands/kickoff.md +9 -5
- package/content/commands/migrate.md +54 -0
- package/content/commands/onboard.md +54 -0
- package/content/commands/parallelize.md +2 -2
- package/content/commands/pickup.md +1 -1
- package/content/commands/plan.md +2 -1
- package/content/commands/refactor.md +6 -5
- package/content/commands/release.md +63 -0
- package/content/commands/secure.md +51 -0
- package/content/commands/showcase.md +56 -0
- package/content/commands/storyboard.md +2 -2
- package/content/commands/test.md +1 -1
- package/content/commands/update.md +43 -0
- package/content/commands/verify.md +7 -0
- package/dist/cli.js +11 -11
- package/dist/cli.js.map +1 -1
- package/dist/installer.d.ts +14 -1
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +38 -8
- package/dist/installer.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Upgrade dependencies or migrate between framework versions
|
|
3
|
+
argument-hint: [package@version, "all", or migration description]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Migration Assistant
|
|
8
|
+
|
|
9
|
+
I'll help you upgrade dependencies or migrate between framework versions safely.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You need to upgrade a dependency, migrate to a new major version, or handle breaking changes. Use `/refactor` for structural code changes that aren't dependency-driven.
|
|
12
|
+
|
|
13
|
+
## Current State
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
|
+
|
|
19
|
+
**Status**:
|
|
20
|
+
!`git status --short`
|
|
21
|
+
|
|
22
|
+
**Current Dependencies**:
|
|
23
|
+
!`cat package.json 2>/dev/null | head -40`
|
|
24
|
+
|
|
25
|
+
**Lock File**:
|
|
26
|
+
!`ls pnpm-lock.yaml yarn.lock bun.lockb package-lock.json 2>/dev/null | head -1 || echo "No lock file found"`
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Migration Target
|
|
31
|
+
|
|
32
|
+
$ARGUMENTS
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Launching Migration Agent
|
|
37
|
+
|
|
38
|
+
The migration agent will:
|
|
39
|
+
- Identify current versions and target versions
|
|
40
|
+
- Research breaking changes and migration guides
|
|
41
|
+
- Capture a baseline (typecheck, lint, tests, build)
|
|
42
|
+
- Create a step-by-step migration plan
|
|
43
|
+
- Apply changes incrementally with validation after each step
|
|
44
|
+
- Update code to handle breaking API changes
|
|
45
|
+
- Verify the full test suite passes after migration
|
|
46
|
+
|
|
47
|
+
**Workflows**:
|
|
48
|
+
- `react@19` → Upgrade React to v19 with breaking change resolution
|
|
49
|
+
- `next@15` → Upgrade Next.js with migration guide steps
|
|
50
|
+
- `all` → Check all dependencies for available updates
|
|
51
|
+
- `typescript@5.5` → Upgrade TypeScript with new strict checks
|
|
52
|
+
- Description → Handle a described migration (e.g., "move from Jest to Vitest")
|
|
53
|
+
|
|
54
|
+
Use the Task tool to launch the migrate agent (subagent_type="migrate") with the migration target and any constraints.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate a developer onboarding guide for this project
|
|
3
|
+
argument-hint: [optional: focus area like "backend", "frontend", "api", or "contributing"]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Generate Onboarding Guide
|
|
8
|
+
|
|
9
|
+
I'll analyze your project and generate a comprehensive onboarding guide for new developers.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You want to help new team members get up to speed on the project quickly. This is different from `/docs readme` (user-facing documentation) or `/explain` (understanding specific code). This generates a developer-oriented "survival guide" covering setup, architecture, patterns, conventions, and common tasks.
|
|
12
|
+
|
|
13
|
+
## Current Context
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Project**:
|
|
18
|
+
!`cat package.json 2>/dev/null | head -15 || cat Cargo.toml 2>/dev/null | head -15 || cat pyproject.toml 2>/dev/null | head -15 || cat go.mod 2>/dev/null | head -5`
|
|
19
|
+
|
|
20
|
+
**Structure**:
|
|
21
|
+
!`ls -la`
|
|
22
|
+
|
|
23
|
+
**Git Info**:
|
|
24
|
+
!`git log --oneline -5 2>/dev/null; echo "---"; git branch -a 2>/dev/null | head -10`
|
|
25
|
+
|
|
26
|
+
**Existing Docs**:
|
|
27
|
+
!`ls README* CONTRIBUTING* CLAUDE.md docs/ 2>/dev/null | head -10`
|
|
28
|
+
|
|
29
|
+
**Dev Scripts**:
|
|
30
|
+
!`cat package.json 2>/dev/null | grep -A 20 '"scripts"' | head -25`
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Focus Area
|
|
35
|
+
|
|
36
|
+
$ARGUMENTS
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Launching Onboard Agent
|
|
41
|
+
|
|
42
|
+
The onboard agent will:
|
|
43
|
+
1. **Deep-scan the project** — Structure, dependencies, patterns, conventions
|
|
44
|
+
2. **Read existing documentation** — README, CONTRIBUTING, CLAUDE.md, inline docs
|
|
45
|
+
3. **Identify key patterns** — How code is organized, named, and tested
|
|
46
|
+
4. **Discover setup requirements** — Env vars, services, tools, config
|
|
47
|
+
5. **Generate the guide** — A comprehensive ONBOARDING.md covering everything a new dev needs
|
|
48
|
+
|
|
49
|
+
**Workflows**:
|
|
50
|
+
- No argument → Full onboarding guide covering all aspects
|
|
51
|
+
- `backend` / `frontend` / `api` → Focused guide for that area
|
|
52
|
+
- `contributing` → Focus on contribution workflow, PR process, code standards
|
|
53
|
+
|
|
54
|
+
Use the Task tool to launch the onboard agent (subagent_type="onboard") with any focus area and additional context.
|
|
@@ -12,10 +12,10 @@ I'll analyze your plan or task, identify parallelization opportunities, and spaw
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Available Plans**:
|
|
18
|
-
!`ls -1
|
|
18
|
+
!`ls -1 {{PLANS_DIR}}/PLAN_*.md 2>/dev/null || echo "No plans found"`
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
package/content/commands/plan.md
CHANGED
|
@@ -25,7 +25,7 @@ $ARGUMENTS
|
|
|
25
25
|
|
|
26
26
|
## Generating Plan
|
|
27
27
|
|
|
28
|
-
Launching the plan agent to analyze our conversation and generate `
|
|
28
|
+
Launching the plan agent to analyze our conversation and generate `{{PLANS_DIR}}/PLAN_{NN}_{NAME}.md`...
|
|
29
29
|
|
|
30
30
|
The agent will:
|
|
31
31
|
- ✅ Summarize key findings from our discussion
|
|
@@ -34,5 +34,6 @@ The agent will:
|
|
|
34
34
|
- ✅ Break down tasks into actionable steps
|
|
35
35
|
- ✅ Note technical considerations and constraints
|
|
36
36
|
- ✅ List relevant files and references
|
|
37
|
+
- ✅ Copy any reference files (images, videos, mockups) to `{{TASKS_DIR}}/references/` and link them in the plan so implementing agents can consume them
|
|
37
38
|
|
|
38
39
|
Use the Task tool to launch the plan agent (subagent_type="plan") which will autonomously generate the plan document.
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Safely
|
|
3
|
-
argument-hint: [operation] [target] (e.g., "
|
|
2
|
+
description: Safely rename, extract, inline, or move code with validation
|
|
3
|
+
argument-hint: [operation] [target] (e.g., "rename:old:new", "extract:ComponentName", "move:src:dest")
|
|
4
4
|
author: "@markoradak"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Refactor Assistant
|
|
8
8
|
|
|
9
|
-
I'll help you safely
|
|
9
|
+
I'll help you safely restructure code — renaming, extracting, inlining, or moving — with validation after every change.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You know what structural change you want to make. Use `/dry` to find and consolidate duplications, `/cleanup` to remove dead/unused code, or `/audit` to review changes before committing.
|
|
10
12
|
|
|
11
13
|
## Current State
|
|
12
14
|
|
|
13
15
|
**Working Directory**: !`pwd`
|
|
14
16
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
18
|
|
|
17
19
|
**Status**:
|
|
18
20
|
!`git status --short`
|
|
@@ -27,7 +29,6 @@ $ARGUMENTS
|
|
|
27
29
|
|
|
28
30
|
## Supported Operations
|
|
29
31
|
|
|
30
|
-
- `dry-check` — Analyze codebase for DRY violations
|
|
31
32
|
- `rename:oldName:newName` — Safe rename across all references
|
|
32
33
|
- `extract:Name` — Extract repeated code into reusable unit
|
|
33
34
|
- `inline:Name` — Inline unnecessary abstraction
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create a release — version bump, changelog, tag, and publish
|
|
3
|
+
argument-hint: [optional: major | minor | patch | version number | --dry-run]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Release
|
|
8
|
+
|
|
9
|
+
I'll orchestrate a complete release for your project — detecting existing release scripts and tooling first.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You're ready to cut a release. This handles version bumping, changelog updates, git tagging, and optionally GitHub Releases or publishing. Use `/changelog` if you only want to generate a changelog without releasing. Use `/commit` for a simple commit without release semantics.
|
|
12
|
+
|
|
13
|
+
## Current State
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
|
+
|
|
19
|
+
**Status**:
|
|
20
|
+
!`git status --short`
|
|
21
|
+
|
|
22
|
+
**Current Version**:
|
|
23
|
+
!`cat package.json 2>/dev/null | grep '"version"' | head -1 || cat Cargo.toml 2>/dev/null | grep '^version' | head -1 || cat pyproject.toml 2>/dev/null | grep '^version' | head -1 || echo "Could not detect version"`
|
|
24
|
+
|
|
25
|
+
**Latest Tags**:
|
|
26
|
+
!`git tag --sort=-version:refname 2>/dev/null | head -5 || echo "No tags found"`
|
|
27
|
+
|
|
28
|
+
**Commits Since Last Tag**:
|
|
29
|
+
!`git log $(git describe --tags --abbrev=0 2>/dev/null)..HEAD --oneline 2>/dev/null | head -15 || git log --oneline -10 2>/dev/null`
|
|
30
|
+
|
|
31
|
+
**Release Scripts Detected**:
|
|
32
|
+
!`cat package.json 2>/dev/null | grep -E '"(release|version|bump|publish|prepublish|postpublish|preversion|postversion|prepublishOnly)"' || echo "None in package.json"`
|
|
33
|
+
!`ls .release-it.* .changeset/ .versionrc* lerna.json .releaserc* release.config.* 2>/dev/null || echo "No release tool configs found"`
|
|
34
|
+
!`ls scripts/release* scripts/publish* scripts/version* Makefile 2>/dev/null || echo "No release scripts found"`
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Release Scope
|
|
39
|
+
|
|
40
|
+
$ARGUMENTS
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Launching Release Agent
|
|
45
|
+
|
|
46
|
+
The release agent will:
|
|
47
|
+
1. **Detect existing release infrastructure** — scripts in package.json, release-it, changesets, semantic-release, standard-version, Makefile targets, scripts/ directory, CI workflows
|
|
48
|
+
2. **If existing tooling found** — use it, guiding through any interactive steps
|
|
49
|
+
3. **If no existing tooling** — orchestrate the release manually:
|
|
50
|
+
- Determine version bump from conventional commits (or use the specified version)
|
|
51
|
+
- Update CHANGELOG.md
|
|
52
|
+
- Bump version in manifest files
|
|
53
|
+
- Create git commit and tag
|
|
54
|
+
- Optionally create a GitHub Release
|
|
55
|
+
4. **Confirm every destructive step** before executing
|
|
56
|
+
|
|
57
|
+
**Workflows**:
|
|
58
|
+
- No argument → Auto-detect version bump from commits (major/minor/patch)
|
|
59
|
+
- `major` / `minor` / `patch` → Explicit bump type
|
|
60
|
+
- `1.2.3` → Explicit version number
|
|
61
|
+
- `--dry-run` → Show what would happen without making changes
|
|
62
|
+
|
|
63
|
+
Use the Task tool to launch the release agent (subagent_type="release") with the scope and any additional context.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run a focused security scan on your codebase
|
|
3
|
+
argument-hint: [optional: file/folder path, or focus area like "deps", "auth", "api"]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Security Scan
|
|
8
|
+
|
|
9
|
+
I'll perform a focused security audit of your codebase, checking for vulnerabilities, exposed secrets, and insecure patterns.
|
|
10
|
+
|
|
11
|
+
> **When to use**: You want a dedicated security review — not a general code review. Use `/audit` for broad code quality review, or `/cleanup` to remove dead code.
|
|
12
|
+
|
|
13
|
+
## Current State
|
|
14
|
+
|
|
15
|
+
**Working Directory**: !`pwd`
|
|
16
|
+
|
|
17
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
18
|
+
|
|
19
|
+
**Status**:
|
|
20
|
+
!`git status --short`
|
|
21
|
+
|
|
22
|
+
**Dependencies**:
|
|
23
|
+
!`cat package.json 2>/dev/null | grep -c '"dependencies\|"devDependencies"' || echo "No package.json"`
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Focus Area
|
|
28
|
+
|
|
29
|
+
$ARGUMENTS
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Launching Security Agent
|
|
34
|
+
|
|
35
|
+
The security agent will:
|
|
36
|
+
- Scan source code for OWASP Top 10 vulnerabilities
|
|
37
|
+
- Check for hardcoded secrets, API keys, and credentials
|
|
38
|
+
- Audit dependencies for known vulnerabilities
|
|
39
|
+
- Review authentication and authorization patterns
|
|
40
|
+
- Check input validation and output encoding
|
|
41
|
+
- Identify injection vectors (SQL, XSS, command, path traversal)
|
|
42
|
+
- Provide a severity-ranked report with specific remediation steps
|
|
43
|
+
|
|
44
|
+
**Scoping options**:
|
|
45
|
+
- No argument → Full codebase security scan
|
|
46
|
+
- `deps` → Dependency vulnerability audit only
|
|
47
|
+
- `auth` → Authentication and authorization review
|
|
48
|
+
- `api` → API endpoint security review
|
|
49
|
+
- File/folder path → Scoped scan
|
|
50
|
+
|
|
51
|
+
Use the Task tool to launch the secure agent (subagent_type="secure") which will perform a comprehensive security analysis and provide actionable remediation guidance.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Design an award-winning landing page with animations and micro-interactions
|
|
3
|
+
argument-hint: [product/project name or description]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Showcase — Landing Page Design
|
|
8
|
+
|
|
9
|
+
I'll design and build a high-end landing page with polished animations, micro-interactions, and visual craft worthy of an Awwwards feature.
|
|
10
|
+
|
|
11
|
+
## Current Context
|
|
12
|
+
|
|
13
|
+
**Working Directory**: !`pwd`
|
|
14
|
+
|
|
15
|
+
**Project Detection**:
|
|
16
|
+
!`ls package.json tsconfig.json next.config.* vite.config.* astro.config.* tailwind.config.* 2>/dev/null || echo "No recognized project files"`
|
|
17
|
+
|
|
18
|
+
**Existing Pages**:
|
|
19
|
+
!`find . -maxdepth 4 -type f \( -name "page.tsx" -o -name "page.jsx" -o -name "index.tsx" -o -name "index.jsx" -o -name "index.html" \) -not -path "*/node_modules/*" 2>/dev/null | head -10`
|
|
20
|
+
|
|
21
|
+
**Reference Files** (images/videos provided):
|
|
22
|
+
!`ls {{TASKS_DIR}}/references/ 2>/dev/null | head -10 || echo "No references found"`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Project / Product
|
|
27
|
+
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## What This Does
|
|
33
|
+
|
|
34
|
+
The showcase agent will design and build a complete, production-ready landing page with:
|
|
35
|
+
|
|
36
|
+
- **Hero section** with striking visual impact and entrance animations
|
|
37
|
+
- **Scroll-driven animations** — elements that reveal, parallax, and transform on scroll
|
|
38
|
+
- **Micro-interactions** — hover states, button feedback, cursor effects, toggle animations
|
|
39
|
+
- **Smooth transitions** — page sections that flow into each other seamlessly
|
|
40
|
+
- **Typography craft** — deliberate type hierarchy, spacing, and rhythm
|
|
41
|
+
- **Responsive design** — fluid layouts that feel intentional at every breakpoint
|
|
42
|
+
- **Performance** — optimized animations that don't tank Core Web Vitals
|
|
43
|
+
|
|
44
|
+
### Style Direction
|
|
45
|
+
|
|
46
|
+
If reference images/videos were provided, the agent will extract the visual direction from them.
|
|
47
|
+
|
|
48
|
+
If no references are provided, the agent will ask you to choose a style direction before designing.
|
|
49
|
+
|
|
50
|
+
### How It Integrates
|
|
51
|
+
|
|
52
|
+
- In `/auto` or `/implement` — if the plan includes a landing page task, the showcase agent is used instead of the generic implement agent for that task
|
|
53
|
+
- In `/parallelize` — landing page work can be a dedicated stream using the showcase agent
|
|
54
|
+
- Standalone — run `/showcase` directly to design a landing page from scratch or redesign an existing one
|
|
55
|
+
|
|
56
|
+
Use the Task tool to launch the showcase agent (subagent_type="showcase") with the product/project context and any reference files.
|
|
@@ -30,11 +30,11 @@ This command extracts key frames from a screen recording or prototype demo using
|
|
|
30
30
|
2. Extract key frames using scene-change detection (captures actual UI state changes)
|
|
31
31
|
3. Read and analyze each frame to identify UI elements, states, and layout
|
|
32
32
|
4. Compare consecutive frames to detect transitions and user actions
|
|
33
|
-
5. Write structured interaction spec to `
|
|
33
|
+
5. Write structured interaction spec to `{{SESSIONS_DIR}}/`
|
|
34
34
|
|
|
35
35
|
### Output
|
|
36
36
|
|
|
37
|
-
A `INTERACTION_SPEC_{NAME}.md` file in `
|
|
37
|
+
A `INTERACTION_SPEC_{NAME}.md` file in `{{SESSIONS_DIR}}/` containing:
|
|
38
38
|
- All detected UI states with element descriptions
|
|
39
39
|
- Transitions between states with user actions and animation notes
|
|
40
40
|
- Implementation checklist ready for `/implement`
|
package/content/commands/test.md
CHANGED
|
@@ -12,7 +12,7 @@ I'll help you run tests, analyze failures, and generate missing test coverage.
|
|
|
12
12
|
|
|
13
13
|
**Working Directory**: !`pwd`
|
|
14
14
|
|
|
15
|
-
**Branch**: !`git branch --show-current`
|
|
15
|
+
**Branch**: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
|
|
16
16
|
|
|
17
17
|
**Test Configuration**:
|
|
18
18
|
!`ls -la vitest.config.* jest.config.* playwright.config.* 2>/dev/null || echo "No test config found"`
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Update CLAUDE.md and STATE.md to reflect current project state
|
|
3
|
+
argument-hint: [optional: section to focus on]
|
|
4
|
+
author: "@markoradak"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Update CLAUDE.md
|
|
8
|
+
|
|
9
|
+
I'll scan the project and update CLAUDE.md and STATE.md to reflect the current state — tech stack, structure, patterns, conventions, and plan progress.
|
|
10
|
+
|
|
11
|
+
## Current Context
|
|
12
|
+
|
|
13
|
+
**Working Directory**: !`pwd`
|
|
14
|
+
|
|
15
|
+
**Existing CLAUDE.md**:
|
|
16
|
+
!`cat CLAUDE.md 2>/dev/null | head -5 || echo "No CLAUDE.md found"`
|
|
17
|
+
|
|
18
|
+
**Project Detection**:
|
|
19
|
+
!`ls package.json tsconfig.json Cargo.toml go.mod pyproject.toml requirements.txt composer.json Gemfile pom.xml build.gradle mix.exs 2>/dev/null || echo "No recognized project files"`
|
|
20
|
+
|
|
21
|
+
**Source Files**:
|
|
22
|
+
!`find . -maxdepth 3 -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.py" -o -name "*.rs" -o -name "*.go" -o -name "*.java" -o -name "*.rb" -o -name "*.ex" -o -name "*.php" \) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | wc -l`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Focus Area
|
|
27
|
+
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Launching Update Agent
|
|
33
|
+
|
|
34
|
+
The update agent will:
|
|
35
|
+
- ✅ Scan the project for tech stack, dependencies, and toolchain
|
|
36
|
+
- ✅ Map the directory structure and key files
|
|
37
|
+
- ✅ Detect patterns, conventions, and coding standards
|
|
38
|
+
- ✅ Read existing CLAUDE.md and preserve user-written sections
|
|
39
|
+
- ✅ Update or create auto-generated sections with current project state
|
|
40
|
+
- ✅ Reconcile STATE.md with actual plan files on disk — sync task completion, add missing plans, remove stale entries
|
|
41
|
+
- ✅ Never overwrite manual notes or custom instructions
|
|
42
|
+
|
|
43
|
+
Use the Task tool to launch the update agent (subagent_type="update") which will scan the project and update CLAUDE.md.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Verification Mode
|
|
3
|
+
argument-hint: [optional: approach or task to verify]
|
|
3
4
|
author: "@markoradak"
|
|
4
5
|
---
|
|
5
6
|
|
|
@@ -13,4 +14,10 @@ Before proceeding with this task, perform a quick verification check:
|
|
|
13
14
|
|
|
14
15
|
Keep it brief - just enough to make sure we're on the right track.
|
|
15
16
|
|
|
17
|
+
## Scope
|
|
18
|
+
|
|
19
|
+
This mode applies to the current task or topic. Once verification is done, normal conversation resumes.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
16
23
|
$ARGUMENTS
|
package/dist/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ program
|
|
|
16
16
|
.option('-l, --local', 'Install to current directory (./.claude)')
|
|
17
17
|
.option('-p, --path <path>', 'Install to a custom path')
|
|
18
18
|
.option('-y, --yes', 'Skip confirmation prompts')
|
|
19
|
-
.option('--power <level>', 'Agent power level 1-5 (default:
|
|
19
|
+
.option('--power <level>', 'Agent power level 1-5 (default: 4)')
|
|
20
20
|
.option('--tasks-dir <name>', `Tasks directory name (default: ${DEFAULT_TASKS_DIR})`)
|
|
21
21
|
.parse(process.argv);
|
|
22
22
|
const options = program.opts();
|
|
@@ -96,7 +96,7 @@ async function main() {
|
|
|
96
96
|
powerLevel = parsed;
|
|
97
97
|
}
|
|
98
98
|
else if (options.yes) {
|
|
99
|
-
powerLevel =
|
|
99
|
+
powerLevel = 4;
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
const powerAnswer = await inquirer.prompt([
|
|
@@ -105,13 +105,13 @@ async function main() {
|
|
|
105
105
|
name: 'power',
|
|
106
106
|
message: 'Select agent power level:',
|
|
107
107
|
choices: [
|
|
108
|
-
{ name: '1 - Economy (
|
|
109
|
-
{ name: '2 - Balanced (haiku
|
|
110
|
-
{ name: '3 - Standard (all sonnet
|
|
111
|
-
{ name: '4 - Enhanced (sonnet
|
|
112
|
-
{ name: '5 - Maximum (all opus — most capable)', value: 5 },
|
|
108
|
+
{ name: '1 - Economy (haiku + sonnet heavyweight — fastest, lowest cost)', value: 1 },
|
|
109
|
+
{ name: '2 - Balanced (haiku light, sonnet everything else)', value: 2 },
|
|
110
|
+
{ name: '3 - Standard (all sonnet)', value: 3 },
|
|
111
|
+
{ name: '4 - Enhanced (sonnet light, opus everything else — recommended)', value: 4 },
|
|
112
|
+
{ name: '5 - Maximum (all opus — most capable, highest cost)', value: 5 },
|
|
113
113
|
],
|
|
114
|
-
default:
|
|
114
|
+
default: 3 // 0-indexed, so index 3 = value 4
|
|
115
115
|
}
|
|
116
116
|
]);
|
|
117
117
|
powerLevel = powerAnswer.power;
|
|
@@ -195,9 +195,9 @@ async function main() {
|
|
|
195
195
|
console.log(` ${chalk.cyan('3.')} Type ${chalk.yellow('/plan')} to start planning, ${chalk.yellow('/research')} to research, etc.`);
|
|
196
196
|
}
|
|
197
197
|
console.log();
|
|
198
|
-
console.log(chalk.dim('Available commands: /audit, /bootstrap, /brainstorm, /challenge,
|
|
199
|
-
console.log(chalk.dim('/critique, /debug, /dry, /explain, /finalize, /flush, /handoff,
|
|
200
|
-
console.log(chalk.dim('/implement, /kickoff, /parallelize, /pickup, /plan, /refactor,'));
|
|
198
|
+
console.log(chalk.dim('Available commands: /audit, /auto, /bootstrap, /brainstorm, /challenge,'));
|
|
199
|
+
console.log(chalk.dim('/cleanup, /critique, /debug, /dry, /explain, /finalize, /flush, /handoff,'));
|
|
200
|
+
console.log(chalk.dim('/imagine, /implement, /kickoff, /parallelize, /pickup, /plan, /refactor,'));
|
|
201
201
|
console.log(chalk.dim('/research, /storyboard, /test, /verify'));
|
|
202
202
|
console.log();
|
|
203
203
|
}
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEhJ,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAA6C,CAAC;AAanF,OAAO;KACJ,IAAI,CAAC,YAAY,CAAC;KAClB,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC;KAC5B,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,cAAc,EAAE,iDAAiD,CAAC;KACzE,MAAM,CAAC,aAAa,EAAE,0CAA0C,CAAC;KACjE,MAAM,CAAC,mBAAmB,EAAE,0BAA0B,CAAC;KACvD,MAAM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,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/installer.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export interface InstallResult {
|
|
|
16
16
|
export type AgentPowerLevel = 1 | 2 | 3 | 4 | 5;
|
|
17
17
|
export declare const POWER_LEVEL_LABELS: Record<AgentPowerLevel, string>;
|
|
18
18
|
export declare const RESEARCH_AGENTS: string[];
|
|
19
|
+
export declare const LIGHTWEIGHT_AGENTS: string[];
|
|
20
|
+
export declare const HEAVYWEIGHT_AGENTS: string[];
|
|
21
|
+
export type AgentTier = 'lightweight' | 'research' | 'standard' | 'heavyweight';
|
|
19
22
|
export declare const DEFAULT_TASKS_DIR = "tasks";
|
|
20
23
|
export declare function buildTemplateVars(tasksDir?: string): Record<string, string>;
|
|
21
24
|
export declare const TEMPLATE_VARS: Record<string, string>;
|
|
@@ -47,7 +50,17 @@ export declare function ensureDir(dirPath: string): void;
|
|
|
47
50
|
*/
|
|
48
51
|
export declare function copyDirectory(srcDir: string, destDir: string, tasksDir?: string): number;
|
|
49
52
|
/**
|
|
50
|
-
*
|
|
53
|
+
* Determine the tier for an agent based on its filename
|
|
54
|
+
*/
|
|
55
|
+
export declare function getAgentTier(filename: string): AgentTier;
|
|
56
|
+
/**
|
|
57
|
+
* Get the model to use for a given agent file based on power level and tier
|
|
58
|
+
*
|
|
59
|
+
* Tiers:
|
|
60
|
+
* - lightweight: commit, changelog, handoff, cleanup, imagine (rote tasks)
|
|
61
|
+
* - research: codebase/docs/web research (search + synthesize)
|
|
62
|
+
* - standard: refactor, test, plan, implement, etc. (balanced)
|
|
63
|
+
* - heavyweight: audit, debug, secure (deep reasoning, high stakes)
|
|
51
64
|
*/
|
|
52
65
|
export declare function getModelForAgent(filename: string, powerLevel: AgentPowerLevel): 'haiku' | 'sonnet' | 'opus';
|
|
53
66
|
/**
|
package/dist/installer.d.ts.map
CHANGED
|
@@ -1 +1 @@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,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CA2BxF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAKxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAY3G;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CA2BhI;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAS1C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAyBvE;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,GAAE,eAAmB,EAAE,QAAQ,GAAE,MAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAuCzJ;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB,CASlF"}
|
package/dist/installer.js
CHANGED
|
@@ -16,6 +16,18 @@ export const RESEARCH_AGENTS = [
|
|
|
16
16
|
'research-docs.md',
|
|
17
17
|
'research-web.md',
|
|
18
18
|
];
|
|
19
|
+
export const LIGHTWEIGHT_AGENTS = [
|
|
20
|
+
'commit.md',
|
|
21
|
+
'changelog.md',
|
|
22
|
+
'handoff.md',
|
|
23
|
+
'cleanup.md',
|
|
24
|
+
'imagine.md',
|
|
25
|
+
];
|
|
26
|
+
export const HEAVYWEIGHT_AGENTS = [
|
|
27
|
+
'audit.md',
|
|
28
|
+
'debug.md',
|
|
29
|
+
'secure.md',
|
|
30
|
+
];
|
|
19
31
|
export const DEFAULT_TASKS_DIR = 'tasks';
|
|
20
32
|
export function buildTemplateVars(tasksDir = DEFAULT_TASKS_DIR) {
|
|
21
33
|
return {
|
|
@@ -122,18 +134,36 @@ export function copyDirectory(srcDir, destDir, tasksDir) {
|
|
|
122
134
|
return copiedCount;
|
|
123
135
|
}
|
|
124
136
|
/**
|
|
125
|
-
*
|
|
137
|
+
* Determine the tier for an agent based on its filename
|
|
138
|
+
*/
|
|
139
|
+
export function getAgentTier(filename) {
|
|
140
|
+
if (LIGHTWEIGHT_AGENTS.includes(filename))
|
|
141
|
+
return 'lightweight';
|
|
142
|
+
if (RESEARCH_AGENTS.includes(filename))
|
|
143
|
+
return 'research';
|
|
144
|
+
if (HEAVYWEIGHT_AGENTS.includes(filename))
|
|
145
|
+
return 'heavyweight';
|
|
146
|
+
return 'standard';
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get the model to use for a given agent file based on power level and tier
|
|
150
|
+
*
|
|
151
|
+
* Tiers:
|
|
152
|
+
* - lightweight: commit, changelog, handoff, cleanup, imagine (rote tasks)
|
|
153
|
+
* - research: codebase/docs/web research (search + synthesize)
|
|
154
|
+
* - standard: refactor, test, plan, implement, etc. (balanced)
|
|
155
|
+
* - heavyweight: audit, debug, secure (deep reasoning, high stakes)
|
|
126
156
|
*/
|
|
127
157
|
export function getModelForAgent(filename, powerLevel) {
|
|
128
|
-
const
|
|
158
|
+
const tier = getAgentTier(filename);
|
|
129
159
|
const modelMap = {
|
|
130
|
-
1: { research: 'haiku',
|
|
131
|
-
2: { research: 'haiku',
|
|
132
|
-
3: { research: 'sonnet',
|
|
133
|
-
4: { research: 'sonnet',
|
|
134
|
-
5: { research: 'opus',
|
|
160
|
+
1: { lightweight: 'haiku', research: 'haiku', standard: 'haiku', heavyweight: 'sonnet' },
|
|
161
|
+
2: { lightweight: 'haiku', research: 'haiku', standard: 'sonnet', heavyweight: 'sonnet' },
|
|
162
|
+
3: { lightweight: 'sonnet', research: 'sonnet', standard: 'sonnet', heavyweight: 'sonnet' },
|
|
163
|
+
4: { lightweight: 'sonnet', research: 'sonnet', standard: 'opus', heavyweight: 'opus' },
|
|
164
|
+
5: { lightweight: 'opus', research: 'opus', standard: 'opus', heavyweight: 'opus' },
|
|
135
165
|
};
|
|
136
|
-
return
|
|
166
|
+
return modelMap[powerLevel][tier];
|
|
137
167
|
}
|
|
138
168
|
/**
|
|
139
169
|
* Copy agent files with model rewritten based on power level
|