ateschh-kit 1.0.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/.claude/rules/01-identity.md +32 -0
- package/.claude/rules/02-language.md +21 -0
- package/.claude/rules/03-quality.md +39 -0
- package/.claude/rules/04-completion-lock.md +38 -0
- package/.claude/rules/05-state-management.md +48 -0
- package/.claude/rules/06-requirements-lock.md +69 -0
- package/.claude/rules/07-token-management.md +56 -0
- package/.claude/settings.local.json +13 -0
- package/ARCHITECTURE.md +222 -0
- package/CHANGELOG.md +74 -0
- package/CLAUDE.md +154 -0
- package/CONTRIBUTING.md +53 -0
- package/LICENSE +21 -0
- package/README.md +145 -0
- package/README.tr.md +145 -0
- package/agents/_TEMPLATE.md +59 -0
- package/agents/architect.md +117 -0
- package/agents/coder.md +90 -0
- package/agents/debugger.md +96 -0
- package/agents/deployer.md +123 -0
- package/agents/designer.md +154 -0
- package/agents/idea-analyst.md +92 -0
- package/agents/market-researcher.md +88 -0
- package/agents/requirements-expert.md +80 -0
- package/agents/tester.md +102 -0
- package/bin/install.js +142 -0
- package/package.json +46 -0
- package/skills/architecture-design/SKILL.md +92 -0
- package/skills/context-management/SKILL.md +92 -0
- package/skills/fix-bugs/SKILL.md +67 -0
- package/skills/idea-analysis/SKILL.md +71 -0
- package/skills/market-research/SKILL.md +70 -0
- package/skills/publish/SKILL.md +80 -0
- package/skills/requirements-lock/SKILL.md +75 -0
- package/skills/run-tests/SKILL.md +70 -0
- package/skills/write-code/SKILL.md +92 -0
- package/templates/project/DECISIONS.md +24 -0
- package/templates/project/DESIGN.md +141 -0
- package/templates/project/PLAN.md +63 -0
- package/templates/project/REQUIREMENTS.md +46 -0
- package/templates/project/STATE.md +94 -0
- package/templates/project/STRUCTURE.md +89 -0
- package/workflows/_TEMPLATE.md +44 -0
- package/workflows/brainstorm.md +69 -0
- package/workflows/build.md +92 -0
- package/workflows/deploy.md +85 -0
- package/workflows/design.md +84 -0
- package/workflows/finish.md +90 -0
- package/workflows/map-codebase.md +136 -0
- package/workflows/new-project.md +96 -0
- package/workflows/next.md +79 -0
- package/workflows/quick.md +82 -0
- package/workflows/requirements.md +85 -0
- package/workflows/resume.md +55 -0
- package/workflows/save.md +111 -0
- package/workflows/settings.md +92 -0
- package/workflows/status.md +67 -0
- package/workflows/test.md +105 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/map-codebase"
|
|
3
|
+
description: "Analyzes an existing codebase before starting work. Spawns 4 parallel mapper agents."
|
|
4
|
+
phase: "pre-start"
|
|
5
|
+
agents: ["architect", "requirements-expert", "tester", "coder"]
|
|
6
|
+
skills: []
|
|
7
|
+
outputs: [".planning/codebase/ (7 documentation files)"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /map-codebase — Map an Existing Codebase
|
|
11
|
+
|
|
12
|
+
## What This Does
|
|
13
|
+
|
|
14
|
+
Before working on an existing project (vs. starting from scratch), this command spawns 4 parallel mapper agents to analyze the codebase and generate structured documentation.
|
|
15
|
+
|
|
16
|
+
Output is saved to `.planning/codebase/` and feeds into `/new-project` for projects you're taking over.
|
|
17
|
+
|
|
18
|
+
Inspired by GSD's `/gsd-map-codebase` command.
|
|
19
|
+
|
|
20
|
+
## When to Use
|
|
21
|
+
|
|
22
|
+
- Taking over an existing project
|
|
23
|
+
- Resuming work on a project that wasn't built with this system
|
|
24
|
+
- Onboarding to a team codebase
|
|
25
|
+
|
|
26
|
+
## Mapper Agents (Run in Parallel)
|
|
27
|
+
|
|
28
|
+
### Agent 1 — Tech Stack Mapper
|
|
29
|
+
Reads: package.json / pubspec.yaml / go.mod / requirements.txt / etc.
|
|
30
|
+
Identifies:
|
|
31
|
+
- Runtime and framework (with versions)
|
|
32
|
+
- All installed packages and their purpose
|
|
33
|
+
- Build tools and CI/CD
|
|
34
|
+
Output: `.planning/codebase/01-tech-stack.md`
|
|
35
|
+
|
|
36
|
+
### Agent 2 — Architecture Mapper
|
|
37
|
+
Reads: folder structure, main entry points, routing files
|
|
38
|
+
Identifies:
|
|
39
|
+
- Directory structure and conventions
|
|
40
|
+
- Key modules and their responsibilities
|
|
41
|
+
- Data flow patterns
|
|
42
|
+
- External service integrations
|
|
43
|
+
Output: `.planning/codebase/02-architecture.md`
|
|
44
|
+
|
|
45
|
+
### Agent 3 — Quality & Standards Mapper
|
|
46
|
+
Reads: ESLint/TSConfig/Prettier configs, test files, CI config
|
|
47
|
+
Identifies:
|
|
48
|
+
- Code style rules in use
|
|
49
|
+
- Test coverage and testing patterns
|
|
50
|
+
- Type safety level
|
|
51
|
+
- Known issues (TODOs, FIXMEs, deprecated usages)
|
|
52
|
+
Output: `.planning/codebase/03-quality-standards.md`
|
|
53
|
+
|
|
54
|
+
### Agent 4 — Core Concerns Mapper
|
|
55
|
+
Reads: auth files, database schema, API routes, state management
|
|
56
|
+
Identifies:
|
|
57
|
+
- Auth architecture
|
|
58
|
+
- Database schema summary
|
|
59
|
+
- Core business logic
|
|
60
|
+
- State management approach
|
|
61
|
+
Output: `.planning/codebase/04-core-concerns.md`
|
|
62
|
+
|
|
63
|
+
## Steps
|
|
64
|
+
|
|
65
|
+
### Step 1: Confirm Directory
|
|
66
|
+
|
|
67
|
+
Ask: "What folder are we analyzing? (current directory or specify path)"
|
|
68
|
+
|
|
69
|
+
### Step 2: Launch All 4 Agents
|
|
70
|
+
|
|
71
|
+
Launch all 4 simultaneously — they work in parallel.
|
|
72
|
+
|
|
73
|
+
Status update while running:
|
|
74
|
+
```
|
|
75
|
+
🔍 Mapping codebase...
|
|
76
|
+
[1/4] Tech stack mapper... ✅
|
|
77
|
+
[2/4] Architecture mapper... 🔄
|
|
78
|
+
[3/4] Quality mapper... 🔄
|
|
79
|
+
[4/4] Core concerns mapper... ✅
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Step 3: Synthesize
|
|
83
|
+
|
|
84
|
+
After all 4 complete, generate:
|
|
85
|
+
|
|
86
|
+
`.planning/codebase/05-summary.md`:
|
|
87
|
+
```markdown
|
|
88
|
+
# Codebase Summary
|
|
89
|
+
|
|
90
|
+
**Tech Stack**: {one-line summary}
|
|
91
|
+
**Architecture**: {pattern — e.g., monorepo, MVC, feature-based}
|
|
92
|
+
**Quality Level**: {estimated — poor / fair / good / excellent}
|
|
93
|
+
**Complexity**: {low / medium / high}
|
|
94
|
+
|
|
95
|
+
## Top 3 things to know
|
|
96
|
+
1. ...
|
|
97
|
+
2. ...
|
|
98
|
+
3. ...
|
|
99
|
+
|
|
100
|
+
## Top 3 risks or problems
|
|
101
|
+
1. ...
|
|
102
|
+
2. ...
|
|
103
|
+
3. ...
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`.planning/codebase/06-getting-started.md` — how to run the project locally
|
|
107
|
+
|
|
108
|
+
`.planning/codebase/07-conventions.md` — coding conventions in use (naming, file structure, patterns)
|
|
109
|
+
|
|
110
|
+
### Step 4: Report to User
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
✅ Codebase mapped!
|
|
114
|
+
|
|
115
|
+
📁 .planning/codebase/ — 7 files generated:
|
|
116
|
+
01-tech-stack.md
|
|
117
|
+
02-architecture.md
|
|
118
|
+
03-quality-standards.md
|
|
119
|
+
04-core-concerns.md
|
|
120
|
+
05-summary.md
|
|
121
|
+
06-getting-started.md
|
|
122
|
+
07-conventions.md
|
|
123
|
+
|
|
124
|
+
Tech Stack: {one-line}
|
|
125
|
+
Quality Level: {rating}
|
|
126
|
+
Top risk: {top finding}
|
|
127
|
+
|
|
128
|
+
Ready to start working! Run /new-project to set up project tracking,
|
|
129
|
+
or ask me anything about the codebase.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Notes
|
|
133
|
+
|
|
134
|
+
- This workflow does NOT modify any existing code
|
|
135
|
+
- All output is read-only documentation in `.planning/`
|
|
136
|
+
- Use `/quick` for immediate one-off tasks on the codebase
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/new-project"
|
|
3
|
+
description: "Starts a new project, creates folder structure and base files"
|
|
4
|
+
phase: "start"
|
|
5
|
+
agents: []
|
|
6
|
+
skills: []
|
|
7
|
+
outputs: ["projects/{name}/ folder", "Updated ACTIVE-PROJECT.md"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /new-project — Start a New Project
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
When you want to start working on a new application idea.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
|
|
18
|
+
- No active project (if one exists, ask the user to `/finish` or archive it first)
|
|
19
|
+
|
|
20
|
+
## Steps
|
|
21
|
+
|
|
22
|
+
### Step 1: Check for Active Project
|
|
23
|
+
|
|
24
|
+
Read `.state/ACTIVE-PROJECT.md`:
|
|
25
|
+
- If active project exists → "You're currently working on {project}. Finish it first (`/finish`) or archive it. Shall I continue?"
|
|
26
|
+
- If no active project → proceed
|
|
27
|
+
|
|
28
|
+
### Step 2: Get Project Info
|
|
29
|
+
|
|
30
|
+
Ask the user 2 things:
|
|
31
|
+
```
|
|
32
|
+
1. What should the project be called? (no spaces or special characters, e.g., my-app)
|
|
33
|
+
2. In one sentence, what does it do?
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 3: Create Folder Structure
|
|
37
|
+
|
|
38
|
+
Create `projects/{name}/` folder.
|
|
39
|
+
|
|
40
|
+
Copy from templates:
|
|
41
|
+
- `templates/project/REQUIREMENTS.md` → `projects/{name}/REQUIREMENTS.md`
|
|
42
|
+
- `templates/project/DESIGN.md` → `projects/{name}/DESIGN.md`
|
|
43
|
+
- `templates/project/STRUCTURE.md` → `projects/{name}/STRUCTURE.md`
|
|
44
|
+
- `templates/project/STATE.md` → `projects/{name}/STATE.md`
|
|
45
|
+
- `templates/project/PLAN.md` → `projects/{name}/PLAN.md`
|
|
46
|
+
- `templates/project/DECISIONS.md` → `projects/{name}/DECISIONS.md`
|
|
47
|
+
|
|
48
|
+
Also create:
|
|
49
|
+
- `projects/{name}/BACKLOG.md` (empty)
|
|
50
|
+
- `projects/{name}/sessions/` (folder)
|
|
51
|
+
- `projects/{name}/src/` (folder)
|
|
52
|
+
|
|
53
|
+
### Step 4: Fill in STATE.md
|
|
54
|
+
|
|
55
|
+
Update with:
|
|
56
|
+
- Project name
|
|
57
|
+
- Start date (today)
|
|
58
|
+
- Phase 1 IN PROGRESS
|
|
59
|
+
|
|
60
|
+
### Step 5: Update ACTIVE-PROJECT.md
|
|
61
|
+
|
|
62
|
+
Write to `.state/ACTIVE-PROJECT.md`:
|
|
63
|
+
```markdown
|
|
64
|
+
# Active Project
|
|
65
|
+
|
|
66
|
+
- **Project**: {name}
|
|
67
|
+
- **Path**: projects/{name}
|
|
68
|
+
- **Phase**: 1/6
|
|
69
|
+
- **Last worked on**: {today}
|
|
70
|
+
- **Next task**: Run /brainstorm and describe your idea
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Step 6: Update SESSION-LOG.md
|
|
74
|
+
|
|
75
|
+
Append to `.state/SESSION-LOG.md`:
|
|
76
|
+
```
|
|
77
|
+
## {date} — {name}
|
|
78
|
+
- **Done**: Project created
|
|
79
|
+
- **Status**: Phase 1 starting
|
|
80
|
+
- **Next**: /brainstorm
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Step 7: Confirm to User
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
✅ Project "{name}" created!
|
|
87
|
+
|
|
88
|
+
📁 Folder: projects/{name}
|
|
89
|
+
📋 Phase: 1/6 — Idea & Research
|
|
90
|
+
|
|
91
|
+
Ready! Now use `/brainstorm` and tell me about your idea.
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Next Step
|
|
95
|
+
|
|
96
|
+
`/brainstorm`
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/next"
|
|
3
|
+
description: "Auto-pilot: reads STATE.md and runs the correct next step automatically."
|
|
4
|
+
phase: "any"
|
|
5
|
+
agents: []
|
|
6
|
+
skills: []
|
|
7
|
+
outputs: ["Executes the appropriate next workflow"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /next — Auto-Pilot
|
|
11
|
+
|
|
12
|
+
## What This Does
|
|
13
|
+
|
|
14
|
+
Reads your project's current state and automatically runs the right next step.
|
|
15
|
+
No manual decision required from the user.
|
|
16
|
+
|
|
17
|
+
Inspired by GSD's `/gsd-next` command.
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
### Step 1: Read State
|
|
22
|
+
|
|
23
|
+
Read `.state/ACTIVE-PROJECT.md` → get active project name.
|
|
24
|
+
Read `projects/{name}/STATE.md` → get current phase and task.
|
|
25
|
+
|
|
26
|
+
### Step 2: Determine Next Action
|
|
27
|
+
|
|
28
|
+
Use this decision tree:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
No active project?
|
|
32
|
+
→ Tell user to run /new-project
|
|
33
|
+
|
|
34
|
+
Phase 1 not complete?
|
|
35
|
+
→ Run /brainstorm
|
|
36
|
+
|
|
37
|
+
Phase 2 not complete?
|
|
38
|
+
→ Run /requirements
|
|
39
|
+
|
|
40
|
+
Phase 3 not complete?
|
|
41
|
+
→ Run /design
|
|
42
|
+
|
|
43
|
+
Phase 4 in progress?
|
|
44
|
+
→ Run /build (next unchecked task in PLAN.md)
|
|
45
|
+
|
|
46
|
+
Phase 4 complete?
|
|
47
|
+
→ Run /test
|
|
48
|
+
|
|
49
|
+
Phase 5 complete?
|
|
50
|
+
→ Run /deploy
|
|
51
|
+
|
|
52
|
+
Phase 6 complete?
|
|
53
|
+
→ Run /finish
|
|
54
|
+
|
|
55
|
+
State is unclear?
|
|
56
|
+
→ Run /status and ask user what to do next
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Step 3: Announce What You're About to Do
|
|
60
|
+
|
|
61
|
+
Before executing:
|
|
62
|
+
```
|
|
63
|
+
🤖 Auto-pilot: {detected state}
|
|
64
|
+
➡️ Running: /{command} — {reason}
|
|
65
|
+
|
|
66
|
+
Proceeding in 3 seconds... (type "stop" to cancel)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
If no response in 3 seconds → execute.
|
|
70
|
+
|
|
71
|
+
### Step 4: Execute
|
|
72
|
+
|
|
73
|
+
Run the detected workflow exactly as if the user typed its command.
|
|
74
|
+
|
|
75
|
+
## Tips
|
|
76
|
+
|
|
77
|
+
- Run `/next` repeatedly to move through phases automatically
|
|
78
|
+
- If something goes wrong, `/status` gives a full picture
|
|
79
|
+
- `/quick` is for one-off tasks that don't fit the main pipeline
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/quick"
|
|
3
|
+
description: "Ad-hoc task without the full pipeline. For small, one-off requests."
|
|
4
|
+
phase: "any"
|
|
5
|
+
agents: []
|
|
6
|
+
skills: []
|
|
7
|
+
outputs: ["Completed ad-hoc task", "Logged in BACKLOG.md if relevant"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /quick — Quick Task
|
|
11
|
+
|
|
12
|
+
## What This Does
|
|
13
|
+
|
|
14
|
+
Handles small, focused tasks that don't need the full new-project pipeline.
|
|
15
|
+
For things like: "add dark mode", "fix this bug", "refactor this file", "explain this code".
|
|
16
|
+
|
|
17
|
+
Inspired by GSD's `/gsd-quick` command.
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
✅ Use `/quick` for:
|
|
22
|
+
- Bug fixes
|
|
23
|
+
- Small feature additions
|
|
24
|
+
- Code explanations or reviews
|
|
25
|
+
- Refactoring a specific file
|
|
26
|
+
- One-off scripts or utilities
|
|
27
|
+
|
|
28
|
+
❌ Don't use `/quick` for:
|
|
29
|
+
- Starting a new full project (use `/new-project`)
|
|
30
|
+
- Anything that touches REQUIREMENTS.md or DESIGN.md
|
|
31
|
+
- Multi-day features
|
|
32
|
+
|
|
33
|
+
## Steps
|
|
34
|
+
|
|
35
|
+
### Step 1: Get the Task
|
|
36
|
+
|
|
37
|
+
Ask the user (if not already stated in the command):
|
|
38
|
+
```
|
|
39
|
+
What do you want to do? (be specific — one sentence)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Step 2: Mini-Plan
|
|
43
|
+
|
|
44
|
+
Generate a quick plan (max 3 steps):
|
|
45
|
+
```
|
|
46
|
+
Quick Task Plan:
|
|
47
|
+
1. {step 1}
|
|
48
|
+
2. {step 2}
|
|
49
|
+
3. {step 3}
|
|
50
|
+
|
|
51
|
+
Estimated time: {X minutes}
|
|
52
|
+
Files affected: {list}
|
|
53
|
+
|
|
54
|
+
Proceed?
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Step 3: Execute
|
|
58
|
+
|
|
59
|
+
Execute the plan directly — no agent spawning unless task is complex (>50 lines).
|
|
60
|
+
|
|
61
|
+
Run L1+L2 checks after (same as /build).
|
|
62
|
+
|
|
63
|
+
### Step 4: Log if Relevant
|
|
64
|
+
|
|
65
|
+
If the task reveals something for the main project:
|
|
66
|
+
- Bug found → log fix in STATE.md
|
|
67
|
+
- Feature idea → add to BACKLOG.md
|
|
68
|
+
- Decision made → log in DECISIONS.md
|
|
69
|
+
|
|
70
|
+
### Step 5: Confirm
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
✅ Done: {what was done}
|
|
74
|
+
|
|
75
|
+
{result or output}
|
|
76
|
+
|
|
77
|
+
Back to your main project whenever you're ready.
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Context
|
|
81
|
+
|
|
82
|
+
`/quick` does NOT change the active project or STATE.md unless the task is directly related to it.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/requirements"
|
|
3
|
+
description: "Selects and locks the tech stack. Run after /brainstorm."
|
|
4
|
+
phase: "2"
|
|
5
|
+
agents: ["requirements-expert"]
|
|
6
|
+
skills: ["requirements-lock"]
|
|
7
|
+
outputs: ["Locked REQUIREMENTS.md", "Updated STATE.md", "DECISIONS.md entry"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /requirements — Define & Lock Tech Stack
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
After `/brainstorm` is complete and the idea is validated.
|
|
15
|
+
|
|
16
|
+
## Steps
|
|
17
|
+
|
|
18
|
+
### Step 1: Verify Phase
|
|
19
|
+
|
|
20
|
+
Read `projects/{name}/STATE.md`. Confirm Phase 1 is complete.
|
|
21
|
+
|
|
22
|
+
### Step 2: Spawn Requirements Expert Agent
|
|
23
|
+
|
|
24
|
+
Read `agents/requirements-expert.md` and spawn the agent.
|
|
25
|
+
|
|
26
|
+
The agent:
|
|
27
|
+
1. Reads the idea summary from the session
|
|
28
|
+
2. Evaluates the best tech stack based on:
|
|
29
|
+
- Platform target (web, mobile, game, backend)
|
|
30
|
+
- Scale expectations
|
|
31
|
+
- Deployment requirements
|
|
32
|
+
- User's stated preferences (if any)
|
|
33
|
+
3. Proposes a full stack with reasoning
|
|
34
|
+
4. Uses Context7 MCP to verify library compatibility if needed
|
|
35
|
+
|
|
36
|
+
### Step 3: Present Stack to User
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
## Proposed Tech Stack for {project}
|
|
40
|
+
|
|
41
|
+
| Category | Technology | Why |
|
|
42
|
+
|----------|-----------|-----|
|
|
43
|
+
| Framework | ... | ... |
|
|
44
|
+
| Database | ... | ... |
|
|
45
|
+
| Auth | ... | ... |
|
|
46
|
+
| UI | ... | ... |
|
|
47
|
+
| Deploy | ... | ... |
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Ask: "Does this stack work for you? Once confirmed, it cannot be changed without formal review."
|
|
51
|
+
|
|
52
|
+
### Step 4: Lock REQUIREMENTS.md
|
|
53
|
+
|
|
54
|
+
Use the `requirements-lock` skill:
|
|
55
|
+
- Fill in `projects/{name}/REQUIREMENTS.md` completely
|
|
56
|
+
- Set status to **LOCKED ✅**
|
|
57
|
+
- Include all versions
|
|
58
|
+
|
|
59
|
+
### Step 5: Log Decision
|
|
60
|
+
|
|
61
|
+
Append to `projects/{name}/DECISIONS.md`:
|
|
62
|
+
```
|
|
63
|
+
## {date} — Tech Stack Locked
|
|
64
|
+
- Selected: {framework, DB, etc.}
|
|
65
|
+
- Reason: {brief rationale}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Step 6: Update STATE.md
|
|
69
|
+
|
|
70
|
+
Mark Phase 2 complete. Set next task to `/design`.
|
|
71
|
+
|
|
72
|
+
### Step 7: Confirm to User
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
✅ Tech stack locked!
|
|
76
|
+
|
|
77
|
+
REQUIREMENTS.md is now frozen. If you want to change anything later,
|
|
78
|
+
we'll need to formally review and potentially refactor.
|
|
79
|
+
|
|
80
|
+
Next: `/design` — let's define the app structure and visual style.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Next Step
|
|
84
|
+
|
|
85
|
+
`/design`
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/resume"
|
|
3
|
+
description: "Restores context from the last saved session. Use when returning to a project."
|
|
4
|
+
phase: "any"
|
|
5
|
+
agents: []
|
|
6
|
+
skills: ["context-management"]
|
|
7
|
+
outputs: ["Context restored", "3-line status summary"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /resume — Resume Where You Left Off
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- When returning to a project after a break
|
|
15
|
+
- After switching from another AI platform
|
|
16
|
+
- After running `/save` on a different device
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
### Step 1: Read ACTIVE-PROJECT.md
|
|
21
|
+
|
|
22
|
+
Check `.state/ACTIVE-PROJECT.md`:
|
|
23
|
+
- If no active project → ask "Which project? List available in `projects/`"
|
|
24
|
+
- If active project found → proceed
|
|
25
|
+
|
|
26
|
+
### Step 2: Read Context Chain
|
|
27
|
+
|
|
28
|
+
Read in order:
|
|
29
|
+
1. `.state/ACTIVE_CONTEXT.md` → current project snapshot
|
|
30
|
+
2. `projects/{name}/STATE.md` → live progress
|
|
31
|
+
3. `projects/{name}/PLAN.md` → task list
|
|
32
|
+
|
|
33
|
+
### Step 3: Read Latest Session File
|
|
34
|
+
|
|
35
|
+
Find the most recent `projects/{name}/sessions/session-NNN.md`.
|
|
36
|
+
Extract what was done last and what was planned next.
|
|
37
|
+
|
|
38
|
+
### Step 4: Report to User
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
✅ Context restored!
|
|
42
|
+
|
|
43
|
+
📁 Project: {name}
|
|
44
|
+
📋 Phase: {N}/6 — {phase name}
|
|
45
|
+
✅ Last done: {last completed task}
|
|
46
|
+
➡️ Next up: {next task}
|
|
47
|
+
|
|
48
|
+
Ready to continue? Run `/build` or `/next`.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Step 5: Ask to Continue
|
|
52
|
+
|
|
53
|
+
"Want to pick up where we left off?"
|
|
54
|
+
- Yes → auto-detect the right command (see `/next`)
|
|
55
|
+
- No → wait for user instruction
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/save"
|
|
3
|
+
description: "Saves current context for cross-platform continuation. Run before switching AI tools."
|
|
4
|
+
phase: "any"
|
|
5
|
+
agents: []
|
|
6
|
+
skills: ["context-management"]
|
|
7
|
+
outputs: ["ACTIVE_CONTEXT.md", "sessions/session-NNN.md", "MEMORY.md updated"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /save — Save Context
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Before ending a session
|
|
15
|
+
- Before switching from Claude Code to Antigravity (or vice versa)
|
|
16
|
+
- When context window is getting full (DEGRADING zone)
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
### Step 1: Read Current State
|
|
21
|
+
|
|
22
|
+
Read:
|
|
23
|
+
- `.state/ACTIVE-PROJECT.md`
|
|
24
|
+
- `projects/{name}/STATE.md`
|
|
25
|
+
- `projects/{name}/PLAN.md`
|
|
26
|
+
|
|
27
|
+
### Step 2: Determine Session Number
|
|
28
|
+
|
|
29
|
+
Check `projects/{name}/sessions/` → count existing files → next is session-{NNN}.md
|
|
30
|
+
|
|
31
|
+
### Step 3: Write Session File
|
|
32
|
+
|
|
33
|
+
Create `projects/{name}/sessions/session-{NNN}.md`:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Session {NNN} — {date}
|
|
37
|
+
|
|
38
|
+
## What was done this session
|
|
39
|
+
{bullet list of tasks completed}
|
|
40
|
+
|
|
41
|
+
## Current state
|
|
42
|
+
- Phase: {N}/6
|
|
43
|
+
- Last completed task: {task}
|
|
44
|
+
- Next task: {task}
|
|
45
|
+
- Files changed: {file list}
|
|
46
|
+
|
|
47
|
+
## Context notes
|
|
48
|
+
{any important decisions or context that isn't in STATE.md}
|
|
49
|
+
|
|
50
|
+
## Blockers (if any)
|
|
51
|
+
{list or "None"}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Step 4: Compress to ACTIVE_CONTEXT.md
|
|
55
|
+
|
|
56
|
+
Write to `.state/ACTIVE_CONTEXT.md` — a 1-page summary:
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
# Active Context — {date}
|
|
60
|
+
|
|
61
|
+
**Project**: {name}
|
|
62
|
+
**Phase**: {N}/6
|
|
63
|
+
**Status**: {brief description}
|
|
64
|
+
|
|
65
|
+
## What's done
|
|
66
|
+
{3-5 bullet points}
|
|
67
|
+
|
|
68
|
+
## What's next
|
|
69
|
+
{next task}
|
|
70
|
+
|
|
71
|
+
## Key decisions made
|
|
72
|
+
{brief list}
|
|
73
|
+
|
|
74
|
+
## Where to find things
|
|
75
|
+
- Main code: projects/{name}/src/
|
|
76
|
+
- Requirements: projects/{name}/REQUIREMENTS.md
|
|
77
|
+
- Design system: projects/{name}/DESIGN.md
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Step 5: Update MEMORY.md
|
|
81
|
+
|
|
82
|
+
Update the Claude memory file (found via memory path detection):
|
|
83
|
+
- Add a link to the latest session file
|
|
84
|
+
- Update the "Current state" section
|
|
85
|
+
|
|
86
|
+
### Step 6: Update SESSION-LOG.md
|
|
87
|
+
|
|
88
|
+
Append to `.state/SESSION-LOG.md`:
|
|
89
|
+
```
|
|
90
|
+
## {date} — {name}
|
|
91
|
+
- **Done**: {what was completed}
|
|
92
|
+
- **Status**: Phase {N}, {current task}
|
|
93
|
+
- **Next**: {next task}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Step 7: Confirm to User
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
✅ Context saved!
|
|
100
|
+
|
|
101
|
+
📄 Session log: projects/{name}/sessions/session-{NNN}.md
|
|
102
|
+
🧠 Active context: .state/ACTIVE_CONTEXT.md
|
|
103
|
+
|
|
104
|
+
To continue on another platform:
|
|
105
|
+
1. Open this directory in the new AI tool
|
|
106
|
+
2. Type `/resume`
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Next Step
|
|
110
|
+
|
|
111
|
+
`/resume` (on any platform to continue)
|