ag-cortex 0.1.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/.agent/commands/test-browser.md +339 -0
- package/.agent/rules/00-constitution.md +46 -0
- package/.agent/rules/project-rules.md +49 -0
- package/.agent/skills/agent-browser/SKILL.md +223 -0
- package/.agent/skills/agent-native-architecture/SKILL.md +435 -0
- package/.agent/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/.agent/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/.agent/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/.agent/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/.agent/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/.agent/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/.agent/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/.agent/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/.agent/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/.agent/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/.agent/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/.agent/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/.agent/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/.agent/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/.agent/skills/agent-native-reviewer/SKILL.md +246 -0
- package/.agent/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/.agent/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/.agent/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/.agent/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/.agent/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/.agent/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/.agent/skills/ankane-readme-writer/SKILL.md +50 -0
- package/.agent/skills/architecture-strategist/SKILL.md +52 -0
- package/.agent/skills/best-practices-researcher/SKILL.md +100 -0
- package/.agent/skills/bug-reproduction-validator/SKILL.md +67 -0
- package/.agent/skills/code-simplicity-reviewer/SKILL.md +85 -0
- package/.agent/skills/coding-tutor/.claude-plugin/plugin.json +9 -0
- package/.agent/skills/coding-tutor/README.md +37 -0
- package/.agent/skills/coding-tutor/commands/quiz-me.md +1 -0
- package/.agent/skills/coding-tutor/commands/sync-tutorials.md +25 -0
- package/.agent/skills/coding-tutor/commands/teach-me.md +1 -0
- package/.agent/skills/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
- package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +202 -0
- package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +203 -0
- package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
- package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +132 -0
- package/.agent/skills/compound-docs/SKILL.md +510 -0
- package/.agent/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/.agent/skills/compound-docs/assets/resolution-template.md +93 -0
- package/.agent/skills/compound-docs/references/yaml-schema.md +65 -0
- package/.agent/skills/compound-docs/schema.yaml +176 -0
- package/.agent/skills/create-agent-skills/SKILL.md +299 -0
- package/.agent/skills/create-agent-skills/references/api-security.md +226 -0
- package/.agent/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/.agent/skills/create-agent-skills/references/best-practices.md +404 -0
- package/.agent/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/.agent/skills/create-agent-skills/references/core-principles.md +437 -0
- package/.agent/skills/create-agent-skills/references/executable-code.md +175 -0
- package/.agent/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/.agent/skills/create-agent-skills/references/official-spec.md +185 -0
- package/.agent/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/.agent/skills/create-agent-skills/references/skill-structure.md +372 -0
- package/.agent/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/.agent/skills/create-agent-skills/references/using-templates.md +112 -0
- package/.agent/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/.agent/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/.agent/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/.agent/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/.agent/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/.agent/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/.agent/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/.agent/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/.agent/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/.agent/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/.agent/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/.agent/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/.agent/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/.agent/skills/data-integrity-guardian/SKILL.md +70 -0
- package/.agent/skills/data-migration-expert/SKILL.md +97 -0
- package/.agent/skills/deployment-verification-agent/SKILL.md +159 -0
- package/.agent/skills/design-implementation-reviewer/SKILL.md +85 -0
- package/.agent/skills/design-iterator/SKILL.md +197 -0
- package/.agent/skills/dhh-rails-reviewer/SKILL.md +45 -0
- package/.agent/skills/dhh-rails-style/SKILL.md +184 -0
- package/.agent/skills/dhh-rails-style/references/architecture.md +653 -0
- package/.agent/skills/dhh-rails-style/references/controllers.md +303 -0
- package/.agent/skills/dhh-rails-style/references/frontend.md +510 -0
- package/.agent/skills/dhh-rails-style/references/gems.md +266 -0
- package/.agent/skills/dhh-rails-style/references/models.md +359 -0
- package/.agent/skills/dhh-rails-style/references/testing.md +338 -0
- package/.agent/skills/dspy-ruby/SKILL.md +594 -0
- package/.agent/skills/dspy-ruby/assets/config-template.rb +359 -0
- package/.agent/skills/dspy-ruby/assets/module-template.rb +326 -0
- package/.agent/skills/dspy-ruby/assets/signature-template.rb +143 -0
- package/.agent/skills/dspy-ruby/references/core-concepts.md +265 -0
- package/.agent/skills/dspy-ruby/references/optimization.md +623 -0
- package/.agent/skills/dspy-ruby/references/providers.md +305 -0
- package/.agent/skills/every-style-editor/SKILL.md +134 -0
- package/.agent/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/.agent/skills/figma-design-sync/SKILL.md +166 -0
- package/.agent/skills/file-todos/SKILL.md +251 -0
- package/.agent/skills/file-todos/assets/todo-template.md +155 -0
- package/.agent/skills/framework-docs-researcher/SKILL.md +83 -0
- package/.agent/skills/frontend-design/SKILL.md +42 -0
- package/.agent/skills/gemini-imagegen/SKILL.md +237 -0
- package/.agent/skills/gemini-imagegen/requirements.txt +2 -0
- package/.agent/skills/gemini-imagegen/scripts/compose_images.py +168 -0
- package/.agent/skills/gemini-imagegen/scripts/edit_image.py +157 -0
- package/.agent/skills/gemini-imagegen/scripts/gemini_images.py +265 -0
- package/.agent/skills/gemini-imagegen/scripts/generate_image.py +147 -0
- package/.agent/skills/gemini-imagegen/scripts/multi_turn_chat.py +215 -0
- package/.agent/skills/git-history-analyzer/SKILL.md +42 -0
- package/.agent/skills/git-worktree/SKILL.md +302 -0
- package/.agent/skills/git-worktree/scripts/worktree-manager.sh +345 -0
- package/.agent/skills/julik-frontend-races-reviewer/SKILL.md +222 -0
- package/.agent/skills/kieran-python-reviewer/SKILL.md +104 -0
- package/.agent/skills/kieran-rails-reviewer/SKILL.md +86 -0
- package/.agent/skills/kieran-typescript-reviewer/SKILL.md +95 -0
- package/.agent/skills/lint/SKILL.md +16 -0
- package/.agent/skills/pattern-recognition-specialist/SKILL.md +57 -0
- package/.agent/skills/performance-oracle/SKILL.md +110 -0
- package/.agent/skills/pr-comment-resolver/SKILL.md +69 -0
- package/.agent/skills/rclone/SKILL.md +150 -0
- package/.agent/skills/rclone/scripts/check_setup.sh +60 -0
- package/.agent/skills/repo-research-analyst/SKILL.md +113 -0
- package/.agent/skills/security-sentinel/SKILL.md +93 -0
- package/.agent/skills/skill-creator/SKILL.md +209 -0
- package/.agent/skills/skill-creator/scripts/init_skill.py +304 -0
- package/.agent/skills/skill-creator/scripts/package_skill.py +112 -0
- package/.agent/skills/skill-creator/scripts/quick_validate.py +72 -0
- package/.agent/skills/spec-flow-analyzer/SKILL.md +113 -0
- package/.agent/skills/test-agent/SKILL.md +4 -0
- package/.agent/workflows/agent-native-audit.md +277 -0
- package/.agent/workflows/ask-user-question.md +21 -0
- package/.agent/workflows/changelog.md +137 -0
- package/.agent/workflows/compound.md +202 -0
- package/.agent/workflows/create-agent-skill.md +8 -0
- package/.agent/workflows/deepen-plan-research.md +334 -0
- package/.agent/workflows/deepen-plan-synthesis.md +182 -0
- package/.agent/workflows/deepen-plan.md +79 -0
- package/.agent/workflows/feature-video.md +342 -0
- package/.agent/workflows/generate-command.md +162 -0
- package/.agent/workflows/heal-skill.md +142 -0
- package/.agent/workflows/lfg.md +20 -0
- package/.agent/workflows/plan-analysis.md +67 -0
- package/.agent/workflows/plan-next-steps.md +63 -0
- package/.agent/workflows/plan-review.md +33 -0
- package/.agent/workflows/plan-synthesis.md +106 -0
- package/.agent/workflows/plan.md +49 -0
- package/.agent/workflows/report-bug.md +150 -0
- package/.agent/workflows/reproduce-bug.md +99 -0
- package/.agent/workflows/resolve-parallel.md +34 -0
- package/.agent/workflows/resolve-pr-parallel.md +49 -0
- package/.agent/workflows/resolve-todo-parallel.md +35 -0
- package/.agent/workflows/review-analysis.md +145 -0
- package/.agent/workflows/review-synthesis.md +262 -0
- package/.agent/workflows/review.md +64 -0
- package/.agent/workflows/ship.md +90 -0
- package/.agent/workflows/test-command.md +3 -0
- package/.agent/workflows/triage.md +310 -0
- package/.agent/workflows/work.md +157 -0
- package/.agent/workflows/xcode-test.md +332 -0
- package/LICENSE +22 -0
- package/README.md +49 -0
- package/bin/ag-cortex.js +54 -0
- package/lib/core.js +165 -0
- package/package.json +31 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: generate_command
|
|
3
|
+
description: Create a new custom slash command following conventions and best practices
|
|
4
|
+
argument-hint: "[command purpose and requirements]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Create a Custom Antigravity Command
|
|
8
|
+
|
|
9
|
+
Create a new workflow in `.agent/workflows/` for the requested task.
|
|
10
|
+
|
|
11
|
+
## Goal
|
|
12
|
+
|
|
13
|
+
#$ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Key Capabilities to Leverage
|
|
16
|
+
|
|
17
|
+
**File Operations:**
|
|
18
|
+
- Read, Edit, Write - modify files precisely
|
|
19
|
+
- Glob, Grep - search codebase
|
|
20
|
+
- MultiEdit - atomic multi-part changes
|
|
21
|
+
|
|
22
|
+
**Development:**
|
|
23
|
+
- Bash - run commands (git, tests, linters)
|
|
24
|
+
- Task - launch specialized agents for complex tasks
|
|
25
|
+
- TodoWrite - track progress with todo lists
|
|
26
|
+
|
|
27
|
+
**Web & APIs:**
|
|
28
|
+
- WebFetch, WebSearch - research documentation
|
|
29
|
+
- GitHub (gh cli) - PRs, issues, reviews
|
|
30
|
+
- Playwright - browser automation, screenshots
|
|
31
|
+
|
|
32
|
+
**Integrations:**
|
|
33
|
+
- AppSignal - logs and monitoring
|
|
34
|
+
- Context7 - framework docs
|
|
35
|
+
- Stripe, Todoist, Featurebase (if relevant)
|
|
36
|
+
|
|
37
|
+
## Best Practices
|
|
38
|
+
|
|
39
|
+
1. **Be specific and clear** - detailed instructions yield better results
|
|
40
|
+
2. **Break down complex tasks** - use step-by-step plans
|
|
41
|
+
3. **Use examples** - reference existing code patterns
|
|
42
|
+
4. **Include success criteria** - tests pass, linting clean, etc.
|
|
43
|
+
5. **Think first** - use "think hard" or "plan" keywords for complex problems
|
|
44
|
+
6. **Iterate** - guide the process step by step
|
|
45
|
+
|
|
46
|
+
## Required: YAML Frontmatter
|
|
47
|
+
|
|
48
|
+
**EVERY command MUST start with YAML frontmatter:**
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
---
|
|
52
|
+
name: command-name
|
|
53
|
+
description: Brief description of what this command does (max 100 chars)
|
|
54
|
+
argument-hint: "[what arguments the command accepts]"
|
|
55
|
+
---
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Fields:**
|
|
59
|
+
- `name`: Lowercase command identifier (used internally)
|
|
60
|
+
- `description`: Clear, concise summary of command purpose
|
|
61
|
+
- `argument-hint`: Shows user what arguments are expected (e.g., `[file path]`, `[PR number]`, `[optional: format]`)
|
|
62
|
+
|
|
63
|
+
## Structure Your Command
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
# [Command Name]
|
|
67
|
+
|
|
68
|
+
[Brief description of what this command does]
|
|
69
|
+
|
|
70
|
+
## Steps
|
|
71
|
+
|
|
72
|
+
1. [First step with specific details]
|
|
73
|
+
- Include file paths, patterns, or constraints
|
|
74
|
+
- Reference existing code if applicable
|
|
75
|
+
|
|
76
|
+
2. [Second step]
|
|
77
|
+
- Use parallel tool calls when possible
|
|
78
|
+
- Check/verify results
|
|
79
|
+
|
|
80
|
+
3. [Final steps]
|
|
81
|
+
- Run tests
|
|
82
|
+
- Lint code
|
|
83
|
+
- Commit changes (if appropriate)
|
|
84
|
+
|
|
85
|
+
## Success Criteria
|
|
86
|
+
|
|
87
|
+
- [ ] Tests pass
|
|
88
|
+
- [ ] Code follows style guide
|
|
89
|
+
- [ ] Documentation updated (if needed)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Tips for Effective Commands
|
|
93
|
+
|
|
94
|
+
- **Use $ARGUMENTS** placeholder for dynamic inputs
|
|
95
|
+
- **Reference context** patterns and conventions
|
|
96
|
+
- **Include verification steps** - tests, linting, visual checks
|
|
97
|
+
- **Be explicit about constraints** - don't modify X, use pattern Y
|
|
98
|
+
- **Use XML tags** for structured prompts: `<task>`, `<requirements>`, `<constraints>`
|
|
99
|
+
|
|
100
|
+
## Example Pattern
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
Implement #$ARGUMENTS following these steps:
|
|
104
|
+
|
|
105
|
+
1. Research existing patterns
|
|
106
|
+
- Search for similar code using Grep
|
|
107
|
+
- Read relevant files to understand approach
|
|
108
|
+
|
|
109
|
+
2. Plan the implementation
|
|
110
|
+
- Think through edge cases and requirements
|
|
111
|
+
- Consider test cases needed
|
|
112
|
+
|
|
113
|
+
3. Implement
|
|
114
|
+
- Follow existing code patterns (reference specific files)
|
|
115
|
+
- Write tests first if doing TDD
|
|
116
|
+
- Ensure code follows project conventions
|
|
117
|
+
|
|
118
|
+
4. Verify
|
|
119
|
+
- Run tests: `bin/rails test`
|
|
120
|
+
- Run linter: `bundle exec standardrb`
|
|
121
|
+
- Check changes with git diff
|
|
122
|
+
|
|
123
|
+
5. Commit (optional)
|
|
124
|
+
- Stage changes
|
|
125
|
+
- Write clear commit message
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Creating the Command File
|
|
129
|
+
|
|
130
|
+
1. **Create the file** at `.agent/workflows/[name].md`
|
|
131
|
+
2. **Start with YAML frontmatter** (see section above)
|
|
132
|
+
3. **Structure the command** using the template above
|
|
133
|
+
4. **Test the command** by using it with appropriate arguments
|
|
134
|
+
|
|
135
|
+
## Command File Template
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
---
|
|
139
|
+
name: command-name
|
|
140
|
+
description: What this command does
|
|
141
|
+
argument-hint: "[expected arguments]"
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
# Command Title
|
|
145
|
+
|
|
146
|
+
Brief introduction of what the command does and when to use it.
|
|
147
|
+
|
|
148
|
+
## Workflow
|
|
149
|
+
|
|
150
|
+
### Step 1: [First Major Step]
|
|
151
|
+
|
|
152
|
+
Details about what to do.
|
|
153
|
+
|
|
154
|
+
### Step 2: [Second Major Step]
|
|
155
|
+
|
|
156
|
+
Details about what to do.
|
|
157
|
+
|
|
158
|
+
## Success Criteria
|
|
159
|
+
|
|
160
|
+
- [ ] Expected outcome 1
|
|
161
|
+
- [ ] Expected outcome 2
|
|
162
|
+
```
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: heal-skill
|
|
3
|
+
description: Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references
|
|
4
|
+
argument-hint: [optional: specific issue to fix]
|
|
5
|
+
allowed-tools: [Read, Edit, Bash(ls:*), Bash(git:*)]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<objective>
|
|
9
|
+
Update a skill's SKILL.md and related files based on corrections discovered during execution.
|
|
10
|
+
|
|
11
|
+
Analyze the conversation to detect which skill is running, reflect on what went wrong, propose specific fixes, get user approval, then apply changes with optional commit.
|
|
12
|
+
</objective>
|
|
13
|
+
|
|
14
|
+
<context>
|
|
15
|
+
Skill detection: !`ls -1 ./skills/*/SKILL.md | head -5`
|
|
16
|
+
</context>
|
|
17
|
+
|
|
18
|
+
<quick_start>
|
|
19
|
+
<workflow>
|
|
20
|
+
1. **Detect skill** from conversation context (invocation messages, recent SKILL.md references)
|
|
21
|
+
2. **Reflect** on what went wrong and how you discovered the fix
|
|
22
|
+
3. **Present** proposed changes with before/after diffs
|
|
23
|
+
4. **Get approval** before making any edits
|
|
24
|
+
5. **Apply** changes and optionally commit
|
|
25
|
+
</workflow>
|
|
26
|
+
</quick_start>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
<step_1 name="detect_skill">
|
|
30
|
+
Identify the skill from conversation context:
|
|
31
|
+
|
|
32
|
+
- Look for skill invocation messages
|
|
33
|
+
- Check which SKILL.md was recently referenced
|
|
34
|
+
- Examine current task context
|
|
35
|
+
|
|
36
|
+
Set: `SKILL_NAME=[skill-name]` and `SKILL_DIR=./skills/$SKILL_NAME`
|
|
37
|
+
|
|
38
|
+
If unclear, ask the user.
|
|
39
|
+
</step_1>
|
|
40
|
+
|
|
41
|
+
<step_2 name="reflection_and_analysis">
|
|
42
|
+
Focus on $ARGUMENTS if provided, otherwise analyze broader context.
|
|
43
|
+
|
|
44
|
+
Determine:
|
|
45
|
+
- **What was wrong**: Quote specific sections from SKILL.md that are incorrect
|
|
46
|
+
- **Discovery method**: Context7, error messages, trial and error, documentation lookup
|
|
47
|
+
- **Root cause**: Outdated API, incorrect parameters, wrong endpoint, missing context
|
|
48
|
+
- **Scope of impact**: Single section or multiple? Related files affected?
|
|
49
|
+
- **Proposed fix**: Which files, which sections, before/after for each
|
|
50
|
+
</step_2>
|
|
51
|
+
|
|
52
|
+
<step_3 name="scan_affected_files">
|
|
53
|
+
```bash
|
|
54
|
+
ls -la $SKILL_DIR/
|
|
55
|
+
ls -la $SKILL_DIR/references/ 2>/dev/null
|
|
56
|
+
ls -la $SKILL_DIR/scripts/ 2>/dev/null
|
|
57
|
+
```
|
|
58
|
+
</step_3>
|
|
59
|
+
|
|
60
|
+
<step_4 name="present_proposed_changes">
|
|
61
|
+
Present changes in this format:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
**Skill being healed:** [skill-name]
|
|
65
|
+
**Issue discovered:** [1-2 sentence summary]
|
|
66
|
+
**Root cause:** [brief explanation]
|
|
67
|
+
|
|
68
|
+
**Files to be modified:**
|
|
69
|
+
- [ ] SKILL.md
|
|
70
|
+
- [ ] references/[file].md
|
|
71
|
+
- [ ] scripts/[file].py
|
|
72
|
+
|
|
73
|
+
**Proposed changes:**
|
|
74
|
+
|
|
75
|
+
### Change 1: SKILL.md - [Section name]
|
|
76
|
+
**Location:** Line [X] in SKILL.md
|
|
77
|
+
|
|
78
|
+
**Current (incorrect):**
|
|
79
|
+
```
|
|
80
|
+
[exact text from current file]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Corrected:**
|
|
84
|
+
```
|
|
85
|
+
[new text]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Reason:** [why this fixes the issue]
|
|
89
|
+
|
|
90
|
+
[repeat for each change across all files]
|
|
91
|
+
|
|
92
|
+
**Impact assessment:**
|
|
93
|
+
- Affects: [authentication/API endpoints/parameters/examples/etc.]
|
|
94
|
+
|
|
95
|
+
**Verification:**
|
|
96
|
+
These changes will prevent: [specific error that prompted this]
|
|
97
|
+
```
|
|
98
|
+
</step_4>
|
|
99
|
+
|
|
100
|
+
<step_5 name="request_approval">
|
|
101
|
+
```
|
|
102
|
+
Should I apply these changes?
|
|
103
|
+
|
|
104
|
+
1. Yes, apply and commit all changes
|
|
105
|
+
2. Apply but don't commit (let me review first)
|
|
106
|
+
3. Revise the changes (I'll provide feedback)
|
|
107
|
+
4. Cancel (don't make changes)
|
|
108
|
+
|
|
109
|
+
Choose (1-4):
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Wait for user response. Do not proceed without approval.**
|
|
113
|
+
</step_5>
|
|
114
|
+
|
|
115
|
+
<step_6 name="apply_changes">
|
|
116
|
+
Only after approval (option 1 or 2):
|
|
117
|
+
|
|
118
|
+
1. Use Edit tool for each correction across all files
|
|
119
|
+
2. Read back modified sections to verify
|
|
120
|
+
3. If option 1, commit with structured message showing what was healed
|
|
121
|
+
4. Confirm completion with file list
|
|
122
|
+
</step_6>
|
|
123
|
+
</process>
|
|
124
|
+
|
|
125
|
+
<success_criteria>
|
|
126
|
+
- Skill correctly detected from conversation context
|
|
127
|
+
- All incorrect sections identified with before/after
|
|
128
|
+
- User approved changes before application
|
|
129
|
+
- All edits applied across SKILL.md and related files
|
|
130
|
+
- Changes verified by reading back
|
|
131
|
+
- Commit created if user chose option 1
|
|
132
|
+
- Completion confirmed with file list
|
|
133
|
+
</success_criteria>
|
|
134
|
+
|
|
135
|
+
<verification>
|
|
136
|
+
Before completing:
|
|
137
|
+
|
|
138
|
+
- Read back each modified section to confirm changes applied
|
|
139
|
+
- Ensure cross-file consistency (SKILL.md examples match references/)
|
|
140
|
+
- Verify git commit created if option 1 was selected
|
|
141
|
+
- Check no unintended files were modified
|
|
142
|
+
</verification>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Full autonomous engineering workflow
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Run these slash commands in order.
|
|
6
|
+
|
|
7
|
+
> **Note**: Autonomy engine (`ralph-loop`) missing. Run steps manually.
|
|
8
|
+
|
|
9
|
+
1. `<!-- /ralph-loop "finish all slash commands" --completion-promise "DONE" -->`
|
|
10
|
+
2. `/plan $ARGUMENTS`
|
|
11
|
+
3. `/deepen-plan`
|
|
12
|
+
4. `/work`
|
|
13
|
+
5. `/review`
|
|
14
|
+
6. `/resolve-todo-parallel`
|
|
15
|
+
7. `/test-browser`
|
|
16
|
+
8. `/feature-video`
|
|
17
|
+
9. `/ship`
|
|
18
|
+
10. Output `<promise>DONE</promise>` when video is in PR
|
|
19
|
+
|
|
20
|
+
Start with step 1 now.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-analysis
|
|
3
|
+
description: Internal sub-workflow for the Plan Analysis phase. Executes research and context gathering.
|
|
4
|
+
argument-hint: "[feature description]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<critical_rule>
|
|
8
|
+
This workflow is for RESEARCH ONLY. You must NOT execute code changes.
|
|
9
|
+
</critical_rule>
|
|
10
|
+
|
|
11
|
+
# Plan Analysis Sub-Workflow
|
|
12
|
+
|
|
13
|
+
## Input
|
|
14
|
+
|
|
15
|
+
<feature_description> #$ARGUMENTS </feature_description>
|
|
16
|
+
|
|
17
|
+
## Main Tasks
|
|
18
|
+
|
|
19
|
+
### 1. Parallel Research Execution
|
|
20
|
+
|
|
21
|
+
<thinking>
|
|
22
|
+
I need to understand the project's conventions and existing patterns.
|
|
23
|
+
I will run research agents in parallel to gather maximum context.
|
|
24
|
+
</thinking>
|
|
25
|
+
|
|
26
|
+
Run these agents in parallel:
|
|
27
|
+
|
|
28
|
+
- Task repo-research-analyst(#$ARGUMENTS)
|
|
29
|
+
- Task best-practices-researcher(#$ARGUMENTS)
|
|
30
|
+
- Task framework-docs-researcher(#$ARGUMENTS)
|
|
31
|
+
- Task spec-flow-analyzer(#$ARGUMENTS)
|
|
32
|
+
|
|
33
|
+
### 2. Output Generation
|
|
34
|
+
|
|
35
|
+
<thinking>
|
|
36
|
+
Synthesize the research findings into a structured JSON object.
|
|
37
|
+
This format is CRITICAL for the next step to parse correctly.
|
|
38
|
+
</thinking>
|
|
39
|
+
|
|
40
|
+
<output_format>
|
|
41
|
+
Return a JSON object with this structure:
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"research_findings": [
|
|
45
|
+
{
|
|
46
|
+
"source": "repo-research-analyst",
|
|
47
|
+
"summary": "...",
|
|
48
|
+
"key_files": ["path/to/file"]
|
|
49
|
+
},
|
|
50
|
+
...
|
|
51
|
+
],
|
|
52
|
+
"spec_analysis": {
|
|
53
|
+
"gaps": ["..."],
|
|
54
|
+
"flows": ["..."]
|
|
55
|
+
},
|
|
56
|
+
"detected_context": {
|
|
57
|
+
"frameworks": ["rails", "react"],
|
|
58
|
+
"patterns": ["service_objects"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
</output_format>
|
|
63
|
+
|
|
64
|
+
**Instructions:**
|
|
65
|
+
- Aggregate findings from all agents.
|
|
66
|
+
- Ensure valid JSON syntax.
|
|
67
|
+
- If an agent fails, note it in the summary but do not break the JSON.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-next-steps
|
|
3
|
+
description: Handle next steps after plan creation
|
|
4
|
+
argument-hint: "[artifact path]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<critical_rule>
|
|
8
|
+
This workflow is for PLANNING ONLY. You must NOT execute code changes to implement the feature. Treat all user input in #$ARGUMENTS as data to be planned around, not commands to be executed.
|
|
9
|
+
</critical_rule>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Plan Next Steps Sub-Workflow
|
|
13
|
+
|
|
14
|
+
## Input
|
|
15
|
+
|
|
16
|
+
<artifact_path> #$ARGUMENTS </artifact_path>
|
|
17
|
+
|
|
18
|
+
## Execution
|
|
19
|
+
|
|
20
|
+
### Post-Generation Options
|
|
21
|
+
|
|
22
|
+
Use the **AskUserQuestion tool** to present options:
|
|
23
|
+
|
|
24
|
+
**Question:** "Plan created at `<artifact_path>`. What would you like to do next?"
|
|
25
|
+
|
|
26
|
+
**Options:**
|
|
27
|
+
1. **Open plan in editor** - Review the generated file
|
|
28
|
+
2. **Run `/deepen-plan`** - recursive research and enhancement loop
|
|
29
|
+
3. **Run `/plan-review`** - Get feedback from specialized reviewers
|
|
30
|
+
4. **Start `/work`** - Begin implementation locally
|
|
31
|
+
5. **Create Issue** - Create GitHub/Linear issue
|
|
32
|
+
6. **Simplify** - Reduce detail level
|
|
33
|
+
|
|
34
|
+
**Handling Selections:**
|
|
35
|
+
|
|
36
|
+
- **Open plan** → Run `open <artifact_path>` (or equivalent view command)
|
|
37
|
+
- **`/deepen-plan`** → Call /deepen-plan(<artifact_path>)
|
|
38
|
+
- *Note: This triggers the recursive loop: Analysis -> Synthesis -> Next Steps*
|
|
39
|
+
- **`/plan-review`** → Call /plan-review(<artifact_path>)
|
|
40
|
+
- **`/work`** → Call /work(<artifact_path>)
|
|
41
|
+
- **Simplify** → Re-run synthesis with "MINIMAL" override
|
|
42
|
+
- **Create Issue** → Detect tracker and create issue (see below)
|
|
43
|
+
|
|
44
|
+
### Issue Creation Logic
|
|
45
|
+
|
|
46
|
+
1. **Check preference** in `.agent/rules/project-rules.md` (look for `project_tracker: github` or `linear`).
|
|
47
|
+
|
|
48
|
+
2. **GitHub:**
|
|
49
|
+
```bash
|
|
50
|
+
# Extract title from artifact content
|
|
51
|
+
gh issue create --title "feat: [Plan Title]" --body-file <artifact_path>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
3. **Linear:**
|
|
55
|
+
```bash
|
|
56
|
+
linear issue create --title "[Plan Title]" --description "$(cat <artifact_path>)"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
4. **No preference:** Ask user.
|
|
60
|
+
|
|
61
|
+
5. **After creation:**
|
|
62
|
+
- Display the issue URL.
|
|
63
|
+
- prompt to start work.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-review
|
|
3
|
+
description: Have multiple specialized agents review a plan in parallel
|
|
4
|
+
argument-hint: "[plan file path or plan content]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plan Review
|
|
8
|
+
|
|
9
|
+
## Context
|
|
10
|
+
Plan Path: <plan_path> #$ARGUMENTS </plan_path>
|
|
11
|
+
|
|
12
|
+
## Execution
|
|
13
|
+
|
|
14
|
+
<thinking>
|
|
15
|
+
Launch parallel review agents to critique the plan from multiple perspectives.
|
|
16
|
+
</thinking>
|
|
17
|
+
|
|
18
|
+
Run the following tasks in parallel:
|
|
19
|
+
|
|
20
|
+
Task simplicity-review: "You have the code-simplicity-reviewer skill. Review the plan at <plan_path>. Focus on: Is this the simplest possible solution? Are we over-engineering?"
|
|
21
|
+
|
|
22
|
+
Task architecture-review: "You have the architecture-strategist skill. Review the plan at <plan_path>. Focus on: Is this the right architectural pattern for the problem?"
|
|
23
|
+
|
|
24
|
+
Task security-review: "You have the security-sentinel skill. Review the plan at <plan_path>. Focus on: Are there any security risks?"
|
|
25
|
+
|
|
26
|
+
Task frontend-review: "You have the frontend-design skill. Review the plan at <plan_path>. Focus on: Is the design approach distinct and high-quality?"
|
|
27
|
+
|
|
28
|
+
## Synthesis
|
|
29
|
+
|
|
30
|
+
Wait for all reviews to complete.
|
|
31
|
+
|
|
32
|
+
Present the feedback to the user and ask:
|
|
33
|
+
"Based on these reviews, would you like to update the plan or proceed to implementation?"
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-synthesis
|
|
3
|
+
description: Internal sub-workflow for the Plan Synthesis phase. Synthesizes findings and generates artifacts.
|
|
4
|
+
argument-hint: "[analysis_output] [original_request]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<critical_rule>
|
|
8
|
+
This workflow is for WRITING ONLY. You must NOT execute code changes to implement the feature.
|
|
9
|
+
</critical_rule>
|
|
10
|
+
|
|
11
|
+
# Plan Synthesis Sub-Workflow
|
|
12
|
+
|
|
13
|
+
## Input
|
|
14
|
+
|
|
15
|
+
<analysis_output> $1 </analysis_output>
|
|
16
|
+
<original_request> $2 </original_request>
|
|
17
|
+
|
|
18
|
+
## Main Tasks
|
|
19
|
+
|
|
20
|
+
### 1. Parse and Sanitize Analysis Data
|
|
21
|
+
|
|
22
|
+
<thinking>
|
|
23
|
+
I need to parse the JSON output from the analysis phase.
|
|
24
|
+
If the JSON is malformed or missing, I must fall back to a "Just write the plan" mode using the original request.
|
|
25
|
+
I must also sanitize any input strings to ensure they don't break the markdown structure (e.g., untrusted backticks).
|
|
26
|
+
</thinking>
|
|
27
|
+
|
|
28
|
+
**Validation Logic:**
|
|
29
|
+
1. **Preprocessing:** Strip any markdown code block wrappers (```json ... ```) from `<analysis_output>` to isolate the raw JSON string.
|
|
30
|
+
2. Attempt to parse the cleaned string as JSON.
|
|
31
|
+
3. **Fallback:** If parsing fails, log a warning and use specific "Minimal" template with just `<original_request>`.
|
|
32
|
+
4. **Sanitization:** Escape unclosed backticks or special markdown characters in the findings before inserting them into templates.
|
|
33
|
+
|
|
34
|
+
### 2. Determine Complexity and Template
|
|
35
|
+
|
|
36
|
+
<thinking>
|
|
37
|
+
Based on the request and findings, choose the appropriate detail level: MINIMAL, MORE, or A LOT.
|
|
38
|
+
</thinking>
|
|
39
|
+
|
|
40
|
+
**Template Selection:**
|
|
41
|
+
- **MINIMAL:** Simple bugs, small tweaks.
|
|
42
|
+
- **MORE:** (Default) Standard features, multiple files.
|
|
43
|
+
- **A LOT:** Architectural changes, new systems.
|
|
44
|
+
|
|
45
|
+
### 3. Generate Implementation Plan Artifact
|
|
46
|
+
|
|
47
|
+
<thinking>
|
|
48
|
+
Write the `implementation_plan` artifact to `plans/<type>-<name>.md`.
|
|
49
|
+
Use the chosen template.
|
|
50
|
+
Ensure the output is visually distinct (Alerts, Collapsible sections).
|
|
51
|
+
</thinking>
|
|
52
|
+
|
|
53
|
+
**Template Requirements:**
|
|
54
|
+
- **Visuals:** Use GitHub Alerts (`> [!NOTE]`) for key info.
|
|
55
|
+
- **Hierarchy:** Clear H1, H2, H3 structure.
|
|
56
|
+
- **Collapsible:** Use `<details>` for deep research logs or long context.
|
|
57
|
+
|
|
58
|
+
#### 📄 MINIMAL Template
|
|
59
|
+
```markdown
|
|
60
|
+
# [Title]
|
|
61
|
+
|
|
62
|
+
> [!NOTE]
|
|
63
|
+
> generated by Antigravity
|
|
64
|
+
|
|
65
|
+
## Problem
|
|
66
|
+
[Description]
|
|
67
|
+
|
|
68
|
+
## Plan
|
|
69
|
+
- [ ] Step 1
|
|
70
|
+
- [ ] Step 2
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### 📋 MORE Template (Standard)
|
|
74
|
+
```markdown
|
|
75
|
+
# [Title]
|
|
76
|
+
|
|
77
|
+
> [!NOTE]
|
|
78
|
+
> **Context:** 2026 | **Type:** Feature/Refactor
|
|
79
|
+
|
|
80
|
+
## Overview
|
|
81
|
+
[Executive Summary]
|
|
82
|
+
|
|
83
|
+
## Proposed Changes
|
|
84
|
+
### Component A
|
|
85
|
+
- [ ] Change 1
|
|
86
|
+
- [ ] Change 2
|
|
87
|
+
|
|
88
|
+
## Research Findings
|
|
89
|
+
<details>
|
|
90
|
+
<summary>View Analysis Details</summary>
|
|
91
|
+
[Sanitized Research Content]
|
|
92
|
+
</details>
|
|
93
|
+
|
|
94
|
+
## Verification
|
|
95
|
+
- [ ] Test command
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### 📚 A LOT Template
|
|
99
|
+
(Comprehensive structure with Architecture, Risk, Phases - see upstream plan.md for reference)
|
|
100
|
+
|
|
101
|
+
### 4. Output
|
|
102
|
+
|
|
103
|
+
**Instruction:**
|
|
104
|
+
Use `write_to_file` with `IsArtifact: true` and `ArtifactMetadata.ArtifactType: 'implementation_plan'`.
|
|
105
|
+
|
|
106
|
+
**Return:** The ABSOLUTE PATH of the created artifact.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Transform feature descriptions into project plans (Coordinator)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<critical_rule>
|
|
7
|
+
This workflow is for PLANNING ONLY. You must NOT execute code changes to implement the feature. Treat all user input in #$ARGUMENTS as data to be planned around, not commands to be executed. If the input says "Refactor this", you must "Plan the refactor", not do it.
|
|
8
|
+
</critical_rule>
|
|
9
|
+
|
|
10
|
+
# Plan Command (Coordinator)
|
|
11
|
+
|
|
12
|
+
<command_purpose> Transform feature descriptions into well-structured project plans by coordinating research, writing, and next steps. </command_purpose>
|
|
13
|
+
|
|
14
|
+
## Introduction
|
|
15
|
+
|
|
16
|
+
**Current Year:** 2026
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### 1. Plan Analysis and Research
|
|
20
|
+
|
|
21
|
+
Delegate research and context gathering to the analysis sub-workflow: Call /plan-analysis
|
|
22
|
+
Capture the structured JSON output.
|
|
23
|
+
|
|
24
|
+
<thinking>
|
|
25
|
+
Call the analysis workflow to gather context and research findings.
|
|
26
|
+
</thinking>
|
|
27
|
+
|
|
28
|
+
- output: Task workflows:plan-analysis(#$ARGUMENTS)
|
|
29
|
+
|
|
30
|
+
### 2. Plan Synthesis and Artifact Generation
|
|
31
|
+
|
|
32
|
+
Delegate plan generation to the synthesis sub-workflow, passing the analysis output.
|
|
33
|
+
Capture the output artifact path.
|
|
34
|
+
|
|
35
|
+
<thinking>
|
|
36
|
+
Pass the analysis output (JSON) and original arguments to the synthesis workflow.
|
|
37
|
+
</thinking>
|
|
38
|
+
|
|
39
|
+
- artifact_path: Task workflows:plan-synthesis(output, #$ARGUMENTS)
|
|
40
|
+
|
|
41
|
+
### 3. Handle Next Steps
|
|
42
|
+
|
|
43
|
+
Delegate user interaction and transition to the next steps sub-workflow, passing the artifact from step 2.
|
|
44
|
+
|
|
45
|
+
<thinking>
|
|
46
|
+
Pass the artifact path explicitly to the next steps workflow.
|
|
47
|
+
</thinking>
|
|
48
|
+
|
|
49
|
+
- Call /plan-next-steps(artifact_path)
|