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,474 @@
|
|
|
1
|
+
<overview>
|
|
2
|
+
Skills improve through iteration and testing. This reference covers evaluation-driven development, Antigravity A/B testing patterns, and XML structure validation during testing.
|
|
3
|
+
</overview>
|
|
4
|
+
|
|
5
|
+
<evaluation_driven_development>
|
|
6
|
+
<principle>
|
|
7
|
+
Create evaluations BEFORE writing extensive documentation. This ensures your skill solves real problems rather than documenting imagined ones.
|
|
8
|
+
</principle>
|
|
9
|
+
|
|
10
|
+
<workflow>
|
|
11
|
+
<step_1>
|
|
12
|
+
**Identify gaps**: Run Antigravity on representative tasks without a skill. Document specific failures or missing context.
|
|
13
|
+
</step_1>
|
|
14
|
+
|
|
15
|
+
<step_2>
|
|
16
|
+
**Create evaluations**: Build three scenarios that test these gaps.
|
|
17
|
+
</step_2>
|
|
18
|
+
|
|
19
|
+
<step_3>
|
|
20
|
+
**Establish baseline**: Measure Antigravity's performance without the skill.
|
|
21
|
+
</step_3>
|
|
22
|
+
|
|
23
|
+
<step_4>
|
|
24
|
+
**Write minimal instructions**: Create just enough content to address the gaps and pass evaluations.
|
|
25
|
+
</step_4>
|
|
26
|
+
|
|
27
|
+
<step_5>
|
|
28
|
+
**Iterate**: Execute evaluations, compare against baseline, and refine.
|
|
29
|
+
</step_5>
|
|
30
|
+
</workflow>
|
|
31
|
+
|
|
32
|
+
<evaluation_structure>
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"skills": ["pdf-processing"],
|
|
36
|
+
"query": "Extract all text from this PDF file and save it to output.txt",
|
|
37
|
+
"files": ["test-files/document.pdf"],
|
|
38
|
+
"expected_behavior": [
|
|
39
|
+
"Successfully reads the PDF file using appropriate library",
|
|
40
|
+
"Extracts text content from all pages without missing any",
|
|
41
|
+
"Saves extracted text to output.txt in clear, readable format"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
</evaluation_structure>
|
|
46
|
+
|
|
47
|
+
<why_evaluations_first>
|
|
48
|
+
- Prevents documenting imagined problems
|
|
49
|
+
- Forces clarity about what success looks like
|
|
50
|
+
- Provides objective measurement of skill effectiveness
|
|
51
|
+
- Keeps skill focused on actual needs
|
|
52
|
+
- Enables quantitative improvement tracking
|
|
53
|
+
</why_evaluations_first>
|
|
54
|
+
</evaluation_driven_development>
|
|
55
|
+
|
|
56
|
+
<iterative_development_with_antigravity>
|
|
57
|
+
<principle>
|
|
58
|
+
The most effective skill development uses Antigravity itself. Work with "Antigravity A" (expert who helps refine) to create skills used by "Antigravity B" (agent executing tasks).
|
|
59
|
+
</principle>
|
|
60
|
+
|
|
61
|
+
<creating_skills>
|
|
62
|
+
<workflow>
|
|
63
|
+
<step_1>
|
|
64
|
+
**Complete task without skill**: Work through problem with Antigravity A, noting what context you repeatedly provide.
|
|
65
|
+
</step_1>
|
|
66
|
+
|
|
67
|
+
<step_2>
|
|
68
|
+
**Ask Antigravity A to create skill**: "Create a skill that captures this pattern we just used"
|
|
69
|
+
</step_2>
|
|
70
|
+
|
|
71
|
+
<step_3>
|
|
72
|
+
**Review for conciseness**: Remove unnecessary explanations.
|
|
73
|
+
</step_3>
|
|
74
|
+
|
|
75
|
+
<step_4>
|
|
76
|
+
**Improve architecture**: Organize content with progressive disclosure.
|
|
77
|
+
</step_4>
|
|
78
|
+
|
|
79
|
+
<step_5>
|
|
80
|
+
**Test with Antigravity B**: Use fresh instance to test on real tasks.
|
|
81
|
+
</step_5>
|
|
82
|
+
|
|
83
|
+
<step_6>
|
|
84
|
+
**Iterate based on observation**: Return to Antigravity A with specific issues observed.
|
|
85
|
+
</step_6>
|
|
86
|
+
</workflow>
|
|
87
|
+
|
|
88
|
+
<insight>
|
|
89
|
+
Antigravity models understand skill format natively. Simply ask Antigravity to create a skill and it will generate properly structured SKILL.md content.
|
|
90
|
+
</insight>
|
|
91
|
+
</creating_skills>
|
|
92
|
+
|
|
93
|
+
<improving_skills>
|
|
94
|
+
<workflow>
|
|
95
|
+
<step_1>
|
|
96
|
+
**Use skill in real workflows**: Give Antigravity B actual tasks.
|
|
97
|
+
</step_1>
|
|
98
|
+
|
|
99
|
+
<step_2>
|
|
100
|
+
**Observe behavior**: Where does it struggle, succeed, or make unexpected choices?
|
|
101
|
+
</step_2>
|
|
102
|
+
|
|
103
|
+
<step_3>
|
|
104
|
+
**Return to Antigravity A**: Share observations and current SKILL.md.
|
|
105
|
+
</step_3>
|
|
106
|
+
|
|
107
|
+
<step_4>
|
|
108
|
+
**Review suggestions**: Antigravity A might suggest reorganization, stronger language, or workflow restructuring.
|
|
109
|
+
</step_4>
|
|
110
|
+
|
|
111
|
+
<step_5>
|
|
112
|
+
**Apply and test**: Update skill and test again.
|
|
113
|
+
</step_5>
|
|
114
|
+
|
|
115
|
+
<step_6>
|
|
116
|
+
**Repeat**: Continue based on real usage, not assumptions.
|
|
117
|
+
</step_6>
|
|
118
|
+
</workflow>
|
|
119
|
+
|
|
120
|
+
<what_to_watch_for>
|
|
121
|
+
- **Unexpected exploration paths**: Structure might not be intuitive
|
|
122
|
+
- **Missed connections**: Links might need to be more explicit
|
|
123
|
+
- **Overreliance on sections**: Consider moving frequently-read content to main SKILL.md
|
|
124
|
+
- **Ignored content**: Poorly signaled or unnecessary files
|
|
125
|
+
- **Critical metadata**: The name and description in your skill's metadata are critical for discovery
|
|
126
|
+
</what_to_watch_for>
|
|
127
|
+
</improving_skills>
|
|
128
|
+
</iterative_development_with_antigravity>
|
|
129
|
+
|
|
130
|
+
<model_testing>
|
|
131
|
+
<principle>
|
|
132
|
+
Test with all models you plan to use. Different models have different strengths and need different levels of detail.
|
|
133
|
+
</principle>
|
|
134
|
+
|
|
135
|
+
<haiku_testing>
|
|
136
|
+
**Antigravity Haiku** (fast, economical)
|
|
137
|
+
|
|
138
|
+
Questions to ask:
|
|
139
|
+
- Does the skill provide enough guidance?
|
|
140
|
+
- Are examples clear and complete?
|
|
141
|
+
- Do implicit assumptions become explicit?
|
|
142
|
+
- Does Haiku need more structure?
|
|
143
|
+
|
|
144
|
+
Haiku benefits from:
|
|
145
|
+
- More explicit instructions
|
|
146
|
+
- Complete examples (no partial code)
|
|
147
|
+
- Clear success criteria
|
|
148
|
+
- Step-by-step workflows
|
|
149
|
+
</haiku_testing>
|
|
150
|
+
|
|
151
|
+
<sonnet_testing>
|
|
152
|
+
**Antigravity Sonnet** (balanced)
|
|
153
|
+
|
|
154
|
+
Questions to ask:
|
|
155
|
+
- Is the skill clear and efficient?
|
|
156
|
+
- Does it avoid over-explanation?
|
|
157
|
+
- Are workflows well-structured?
|
|
158
|
+
- Does progressive disclosure work?
|
|
159
|
+
|
|
160
|
+
Sonnet benefits from:
|
|
161
|
+
- Balanced detail level
|
|
162
|
+
- XML structure for clarity
|
|
163
|
+
- Progressive disclosure
|
|
164
|
+
- Concise but complete guidance
|
|
165
|
+
</sonnet_testing>
|
|
166
|
+
|
|
167
|
+
<opus_testing>
|
|
168
|
+
**Antigravity Opus** (powerful reasoning)
|
|
169
|
+
|
|
170
|
+
Questions to ask:
|
|
171
|
+
- Does the skill avoid over-explaining?
|
|
172
|
+
- Can Opus infer obvious steps?
|
|
173
|
+
- Are constraints clear?
|
|
174
|
+
- Is context minimal but sufficient?
|
|
175
|
+
|
|
176
|
+
Opus benefits from:
|
|
177
|
+
- Concise instructions
|
|
178
|
+
- Principles over procedures
|
|
179
|
+
- High degrees of freedom
|
|
180
|
+
- Trust in reasoning capabilities
|
|
181
|
+
</opus_testing>
|
|
182
|
+
|
|
183
|
+
<balancing_across_models>
|
|
184
|
+
What works for Opus might need more detail for Haiku. Aim for instructions that work well across all target models. Find the balance that serves your target audience.
|
|
185
|
+
|
|
186
|
+
See [core-principles.md](core-principles.md) for model testing examples.
|
|
187
|
+
</balancing_across_models>
|
|
188
|
+
</model_testing>
|
|
189
|
+
|
|
190
|
+
<xml_structure_validation>
|
|
191
|
+
<principle>
|
|
192
|
+
During testing, validate that your skill's XML structure is correct and complete.
|
|
193
|
+
</principle>
|
|
194
|
+
|
|
195
|
+
<validation_checklist>
|
|
196
|
+
After updating a skill, verify:
|
|
197
|
+
|
|
198
|
+
<required_tags_present>
|
|
199
|
+
- ✅ `<objective>` tag exists and defines what skill does
|
|
200
|
+
- ✅ `<quick_start>` tag exists with immediate guidance
|
|
201
|
+
- ✅ `<success_criteria>` or `<when_successful>` tag exists
|
|
202
|
+
</required_tags_present>
|
|
203
|
+
|
|
204
|
+
<no_markdown_headings>
|
|
205
|
+
- ✅ No `#`, `##`, or `###` headings in skill body
|
|
206
|
+
- ✅ All sections use XML tags instead
|
|
207
|
+
- ✅ Markdown formatting within tags is preserved (bold, italic, lists, code blocks)
|
|
208
|
+
</no_markdown_headings>
|
|
209
|
+
|
|
210
|
+
<proper_xml_nesting>
|
|
211
|
+
- ✅ All XML tags properly closed
|
|
212
|
+
- ✅ Nested tags have correct hierarchy
|
|
213
|
+
- ✅ No unclosed tags
|
|
214
|
+
</proper_xml_nesting>
|
|
215
|
+
|
|
216
|
+
<conditional_tags_appropriate>
|
|
217
|
+
- ✅ Conditional tags match skill complexity
|
|
218
|
+
- ✅ Simple skills use required tags only
|
|
219
|
+
- ✅ Complex skills add appropriate conditional tags
|
|
220
|
+
- ✅ No over-engineering or under-specifying
|
|
221
|
+
</conditional_tags_appropriate>
|
|
222
|
+
|
|
223
|
+
<reference_files_check>
|
|
224
|
+
- ✅ Reference files also use pure XML structure
|
|
225
|
+
- ✅ Links to reference files are correct
|
|
226
|
+
- ✅ References are one level deep from SKILL.md
|
|
227
|
+
</reference_files_check>
|
|
228
|
+
</validation_checklist>
|
|
229
|
+
|
|
230
|
+
<testing_xml_during_iteration>
|
|
231
|
+
When iterating on a skill:
|
|
232
|
+
|
|
233
|
+
1. Make changes to XML structure
|
|
234
|
+
2. **Validate XML structure** (check tags, nesting, completeness)
|
|
235
|
+
3. Test with Antigravity on representative tasks
|
|
236
|
+
4. Observe if XML structure aids or hinders Antigravity's understanding
|
|
237
|
+
5. Iterate structure based on actual performance
|
|
238
|
+
</testing_xml_during_iteration>
|
|
239
|
+
</xml_structure_validation>
|
|
240
|
+
|
|
241
|
+
<observation_based_iteration>
|
|
242
|
+
<principle>
|
|
243
|
+
Iterate based on what you observe, not what you assume. Real usage reveals issues assumptions miss.
|
|
244
|
+
</principle>
|
|
245
|
+
|
|
246
|
+
<observation_categories>
|
|
247
|
+
<what_agent_reads>
|
|
248
|
+
Which sections does Antigravity actually read? Which are ignored? This reveals:
|
|
249
|
+
- Relevance of content
|
|
250
|
+
- Effectiveness of progressive disclosure
|
|
251
|
+
- Whether section names are clear
|
|
252
|
+
</what_agent_reads>
|
|
253
|
+
|
|
254
|
+
<where_agent_struggles>
|
|
255
|
+
Which tasks cause confusion or errors? This reveals:
|
|
256
|
+
- Missing context
|
|
257
|
+
- Unclear instructions
|
|
258
|
+
- Insufficient examples
|
|
259
|
+
- Ambiguous requirements
|
|
260
|
+
</where_agent_struggles>
|
|
261
|
+
|
|
262
|
+
<where_agent_succeeds>
|
|
263
|
+
Which tasks go smoothly? This reveals:
|
|
264
|
+
- Effective patterns
|
|
265
|
+
- Good examples
|
|
266
|
+
- Clear instructions
|
|
267
|
+
- Appropriate detail level
|
|
268
|
+
</where_agent_succeeds>
|
|
269
|
+
|
|
270
|
+
<unexpected_behaviors>
|
|
271
|
+
What does Antigravity do that surprises you? This reveals:
|
|
272
|
+
- Unstated assumptions
|
|
273
|
+
- Ambiguous phrasing
|
|
274
|
+
- Missing constraints
|
|
275
|
+
- Alternative interpretations
|
|
276
|
+
</unexpected_behaviors>
|
|
277
|
+
</observation_categories>
|
|
278
|
+
|
|
279
|
+
<iteration_pattern>
|
|
280
|
+
1. **Observe**: Run Antigravity on real tasks with current skill
|
|
281
|
+
2. **Document**: Note specific issues, not general feelings
|
|
282
|
+
3. **Hypothesize**: Why did this issue occur?
|
|
283
|
+
4. **Fix**: Make targeted changes to address specific issues
|
|
284
|
+
5. **Test**: Verify fix works on same scenario
|
|
285
|
+
6. **Validate**: Ensure fix doesn't break other scenarios
|
|
286
|
+
7. **Repeat**: Continue with next observed issue
|
|
287
|
+
</iteration_pattern>
|
|
288
|
+
</observation_based_iteration>
|
|
289
|
+
|
|
290
|
+
<progressive_refinement>
|
|
291
|
+
<principle>
|
|
292
|
+
Skills don't need to be perfect initially. Start minimal, observe usage, add what's missing.
|
|
293
|
+
</principle>
|
|
294
|
+
|
|
295
|
+
<initial_version>
|
|
296
|
+
Start with:
|
|
297
|
+
- Valid YAML frontmatter
|
|
298
|
+
- Required XML tags: objective, quick_start, success_criteria
|
|
299
|
+
- Minimal working example
|
|
300
|
+
- Basic success criteria
|
|
301
|
+
|
|
302
|
+
Skip initially:
|
|
303
|
+
- Extensive examples
|
|
304
|
+
- Edge case documentation
|
|
305
|
+
- Advanced features
|
|
306
|
+
- Detailed reference files
|
|
307
|
+
</initial_version>
|
|
308
|
+
|
|
309
|
+
<iteration_additions>
|
|
310
|
+
Add through iteration:
|
|
311
|
+
- Examples when patterns aren't clear from description
|
|
312
|
+
- Edge cases when observed in real usage
|
|
313
|
+
- Advanced features when users need them
|
|
314
|
+
- Reference files when SKILL.md approaches 500 lines
|
|
315
|
+
- Validation scripts when errors are common
|
|
316
|
+
</iteration_additions>
|
|
317
|
+
|
|
318
|
+
<benefits>
|
|
319
|
+
- Faster to initial working version
|
|
320
|
+
- Additions solve real needs, not imagined ones
|
|
321
|
+
- Keeps skills focused and concise
|
|
322
|
+
- Progressive disclosure emerges naturally
|
|
323
|
+
- Documentation stays aligned with actual usage
|
|
324
|
+
</benefits>
|
|
325
|
+
</progressive_refinement>
|
|
326
|
+
|
|
327
|
+
<testing_discovery>
|
|
328
|
+
<principle>
|
|
329
|
+
Test that Antigravity can discover and use your skill when appropriate.
|
|
330
|
+
</principle>
|
|
331
|
+
|
|
332
|
+
<discovery_testing>
|
|
333
|
+
<test_description>
|
|
334
|
+
Test if Antigravity loads your skill when it should:
|
|
335
|
+
|
|
336
|
+
1. Start fresh conversation (Antigravity B)
|
|
337
|
+
2. Ask question that should trigger skill
|
|
338
|
+
3. Check if skill was loaded
|
|
339
|
+
4. Verify skill was used appropriately
|
|
340
|
+
</test_description>
|
|
341
|
+
|
|
342
|
+
<description_quality>
|
|
343
|
+
If skill isn't discovered:
|
|
344
|
+
- Check description includes trigger keywords
|
|
345
|
+
- Verify description is specific, not vague
|
|
346
|
+
- Ensure description explains when to use skill
|
|
347
|
+
- Test with different phrasings of the same request
|
|
348
|
+
|
|
349
|
+
The description is Antigravity's primary discovery mechanism.
|
|
350
|
+
</description_quality>
|
|
351
|
+
</discovery_testing>
|
|
352
|
+
</testing_discovery>
|
|
353
|
+
|
|
354
|
+
<common_iteration_patterns>
|
|
355
|
+
<pattern name="too_verbose">
|
|
356
|
+
**Observation**: Skill works but uses lots of tokens
|
|
357
|
+
|
|
358
|
+
**Fix**:
|
|
359
|
+
- Remove obvious explanations
|
|
360
|
+
- Assume Antigravity knows common concepts
|
|
361
|
+
- Use examples instead of lengthy descriptions
|
|
362
|
+
- Move advanced content to reference files
|
|
363
|
+
</pattern>
|
|
364
|
+
|
|
365
|
+
<pattern name="too_minimal">
|
|
366
|
+
**Observation**: Antigravity makes incorrect assumptions or misses steps
|
|
367
|
+
|
|
368
|
+
**Fix**:
|
|
369
|
+
- Add explicit instructions where assumptions fail
|
|
370
|
+
- Provide complete working examples
|
|
371
|
+
- Define edge cases
|
|
372
|
+
- Add validation steps
|
|
373
|
+
</pattern>
|
|
374
|
+
|
|
375
|
+
<pattern name="poor_discovery">
|
|
376
|
+
**Observation**: Skill exists but Antigravity doesn't load it when needed
|
|
377
|
+
|
|
378
|
+
**Fix**:
|
|
379
|
+
- Improve description with specific triggers
|
|
380
|
+
- Add relevant keywords
|
|
381
|
+
- Test description against actual user queries
|
|
382
|
+
- Make description more specific about use cases
|
|
383
|
+
</pattern>
|
|
384
|
+
|
|
385
|
+
<pattern name="unclear_structure">
|
|
386
|
+
**Observation**: Antigravity reads wrong sections or misses relevant content
|
|
387
|
+
|
|
388
|
+
**Fix**:
|
|
389
|
+
- Use clearer XML tag names
|
|
390
|
+
- Reorganize content hierarchy
|
|
391
|
+
- Move frequently-needed content earlier
|
|
392
|
+
- Add explicit links to relevant sections
|
|
393
|
+
</pattern>
|
|
394
|
+
|
|
395
|
+
<pattern name="incomplete_examples">
|
|
396
|
+
**Observation**: Antigravity produces outputs that don't match expected pattern
|
|
397
|
+
|
|
398
|
+
**Fix**:
|
|
399
|
+
- Add more examples showing pattern
|
|
400
|
+
- Make examples more complete
|
|
401
|
+
- Show edge cases in examples
|
|
402
|
+
- Add anti-pattern examples (what not to do)
|
|
403
|
+
</pattern>
|
|
404
|
+
</common_iteration_patterns>
|
|
405
|
+
|
|
406
|
+
<iteration_velocity>
|
|
407
|
+
<principle>
|
|
408
|
+
Small, frequent iterations beat large, infrequent rewrites.
|
|
409
|
+
</principle>
|
|
410
|
+
|
|
411
|
+
<fast_iteration>
|
|
412
|
+
**Good approach**:
|
|
413
|
+
1. Make one targeted change
|
|
414
|
+
2. Test on specific scenario
|
|
415
|
+
3. Verify improvement
|
|
416
|
+
4. Commit change
|
|
417
|
+
5. Move to next issue
|
|
418
|
+
|
|
419
|
+
Total time: Minutes per iteration
|
|
420
|
+
Iterations per day: 10-20
|
|
421
|
+
Learning rate: High
|
|
422
|
+
</fast_iteration>
|
|
423
|
+
|
|
424
|
+
<slow_iteration>
|
|
425
|
+
**Problematic approach**:
|
|
426
|
+
1. Accumulate many issues
|
|
427
|
+
2. Make large refactor
|
|
428
|
+
3. Test everything at once
|
|
429
|
+
4. Debug multiple issues simultaneously
|
|
430
|
+
5. Hard to know what fixed what
|
|
431
|
+
|
|
432
|
+
Total time: Hours per iteration
|
|
433
|
+
Iterations per day: 1-2
|
|
434
|
+
Learning rate: Low
|
|
435
|
+
</slow_iteration>
|
|
436
|
+
|
|
437
|
+
<benefits_of_fast_iteration>
|
|
438
|
+
- Isolate cause and effect
|
|
439
|
+
- Build pattern recognition faster
|
|
440
|
+
- Less wasted work from wrong directions
|
|
441
|
+
- Easier to revert if needed
|
|
442
|
+
- Maintains momentum
|
|
443
|
+
</benefits_of_fast_iteration>
|
|
444
|
+
</iteration_velocity>
|
|
445
|
+
|
|
446
|
+
<success_metrics>
|
|
447
|
+
<principle>
|
|
448
|
+
Define how you'll measure if the skill is working. Quantify success.
|
|
449
|
+
</principle>
|
|
450
|
+
|
|
451
|
+
<objective_metrics>
|
|
452
|
+
- **Success rate**: Percentage of tasks completed correctly
|
|
453
|
+
- **Token usage**: Average tokens consumed per task
|
|
454
|
+
- **Iteration count**: How many tries to get correct output
|
|
455
|
+
- **Error rate**: Percentage of tasks with errors
|
|
456
|
+
- **Discovery rate**: How often skill loads when it should
|
|
457
|
+
</objective_metrics>
|
|
458
|
+
|
|
459
|
+
<subjective_metrics>
|
|
460
|
+
- **Output quality**: Does output meet requirements?
|
|
461
|
+
- **Appropriate detail**: Too verbose or too minimal?
|
|
462
|
+
- **Antigravity confidence**: Does Antigravity seem uncertain?
|
|
463
|
+
- **User satisfaction**: Does skill solve the actual problem?
|
|
464
|
+
</subjective_metrics>
|
|
465
|
+
|
|
466
|
+
<tracking_improvement>
|
|
467
|
+
Compare metrics before and after changes:
|
|
468
|
+
- Baseline: Measure without skill
|
|
469
|
+
- Initial: Measure with first version
|
|
470
|
+
- Iteration N: Measure after each change
|
|
471
|
+
|
|
472
|
+
Track which changes improve which metrics. Double down on effective patterns.
|
|
473
|
+
</tracking_improvement>
|
|
474
|
+
</success_metrics>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Antigravity Official Skill Specification
|
|
2
|
+
|
|
3
|
+
Source: [code.agent.com/docs/en/skills](https://code.agent.com/docs/en/skills)
|
|
4
|
+
|
|
5
|
+
## SKILL.md File Structure
|
|
6
|
+
|
|
7
|
+
Every Skill requires a `SKILL.md` file with YAML frontmatter followed by Markdown instructions.
|
|
8
|
+
|
|
9
|
+
### Basic Format
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
---
|
|
13
|
+
name: your-skill-name
|
|
14
|
+
description: Brief description of what this Skill does and when to use it
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Your Skill Name
|
|
18
|
+
|
|
19
|
+
## Instructions
|
|
20
|
+
Provide clear, step-by-step guidance for Antigravity.
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
Show concrete examples of using this Skill.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Required Frontmatter Fields
|
|
27
|
+
|
|
28
|
+
| Field | Required | Description |
|
|
29
|
+
|-------|----------|-------------|
|
|
30
|
+
| `name` | Yes | Skill name using lowercase letters, numbers, and hyphens only (max 64 characters). Should match the directory name. |
|
|
31
|
+
| `description` | Yes | What the Skill does and when to use it (max 1024 characters). Antigravity uses this to decide when to apply the Skill. |
|
|
32
|
+
| `allowed-tools` | No | Tools Antigravity can use without asking permission when this Skill is active. Example: `Read, Grep, Glob` |
|
|
33
|
+
| `model` | No | Specific model to use when this Skill is active (e.g., `gemini-1.5-pro-4-20250514`). Defaults to the conversation's model. |
|
|
34
|
+
|
|
35
|
+
## Skill Locations & Priority
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Enterprise (highest priority) → Personal → Project → Plugin (lowest priority)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Type | Path | Applies to |
|
|
42
|
+
|------|------|-----------|
|
|
43
|
+
| **Enterprise** | See managed settings | All users in organization |
|
|
44
|
+
| **Personal** | `~/.antigravity/skills/` | You, across all projects |
|
|
45
|
+
| **Project** | `.antigravity/skills/` | Anyone working in repository |
|
|
46
|
+
| **Plugin** | Bundled with plugins | Anyone with plugin installed |
|
|
47
|
+
|
|
48
|
+
## How Skills Work
|
|
49
|
+
|
|
50
|
+
1. **Discovery**: Antigravity loads only name and description at startup
|
|
51
|
+
2. **Activation**: When your request matches a Skill's description, Antigravity asks for confirmation
|
|
52
|
+
3. **Execution**: Antigravity follows the Skill's instructions and loads referenced files
|
|
53
|
+
|
|
54
|
+
**Key Principle**: Skills are **model-invoked** — Antigravity automatically decides which Skills to use based on your request.
|
|
55
|
+
|
|
56
|
+
## Progressive Disclosure Pattern
|
|
57
|
+
|
|
58
|
+
Keep `SKILL.md` under 500 lines by linking to supporting files:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
my-skill/
|
|
62
|
+
├── SKILL.md (required - overview and navigation)
|
|
63
|
+
├── reference.md (detailed API docs - loaded when needed)
|
|
64
|
+
├── examples.md (usage examples - loaded when needed)
|
|
65
|
+
└── scripts/
|
|
66
|
+
└── helper.py (utility script - executed, not loaded)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Example SKILL.md with References
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
---
|
|
73
|
+
name: pdf-processing
|
|
74
|
+
description: Extract text, fill forms, merge PDFs. Use when working with PDF files, forms, or document extraction. Requires pypdf and pdfplumber packages.
|
|
75
|
+
allowed-tools: Read, Bash(python:*)
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
# PDF Processing
|
|
79
|
+
|
|
80
|
+
## Quick start
|
|
81
|
+
|
|
82
|
+
Extract text:
|
|
83
|
+
```python
|
|
84
|
+
import pdfplumber
|
|
85
|
+
with pdfplumber.open("doc.pdf") as pdf:
|
|
86
|
+
text = pdf.pages[0].extract_text()
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
For form filling, see [FORMS.md](FORMS.md).
|
|
90
|
+
For detailed API reference, see [REFERENCE.md](REFERENCE.md).
|
|
91
|
+
|
|
92
|
+
## Requirements
|
|
93
|
+
|
|
94
|
+
Packages must be installed:
|
|
95
|
+
```bash
|
|
96
|
+
pip install pypdf pdfplumber
|
|
97
|
+
```
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Restricting Tool Access
|
|
101
|
+
|
|
102
|
+
```yaml
|
|
103
|
+
---
|
|
104
|
+
name: reading-files-safely
|
|
105
|
+
description: Read files without making changes. Use when you need read-only file access.
|
|
106
|
+
allowed-tools: Read, Grep, Glob
|
|
107
|
+
---
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Benefits:
|
|
111
|
+
- Read-only Skills that shouldn't modify files
|
|
112
|
+
- Limited scope for specific tasks
|
|
113
|
+
- Security-sensitive workflows
|
|
114
|
+
|
|
115
|
+
## Writing Effective Descriptions
|
|
116
|
+
|
|
117
|
+
The `description` field enables Skill discovery and should include both what the Skill does and when to use it.
|
|
118
|
+
|
|
119
|
+
**Always write in third person.** The description is injected into the system prompt.
|
|
120
|
+
|
|
121
|
+
- **Good:** "Processes Excel files and generates reports"
|
|
122
|
+
- **Avoid:** "I can help you process Excel files"
|
|
123
|
+
- **Avoid:** "You can use this to process Excel files"
|
|
124
|
+
|
|
125
|
+
**Be specific and include key terms:**
|
|
126
|
+
|
|
127
|
+
```yaml
|
|
128
|
+
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Avoid vague descriptions:**
|
|
132
|
+
|
|
133
|
+
```yaml
|
|
134
|
+
description: Helps with documents # Too vague!
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Complete Example: Commit Message Generator
|
|
138
|
+
|
|
139
|
+
```markdown
|
|
140
|
+
---
|
|
141
|
+
name: generating-commit-messages
|
|
142
|
+
description: Generates clear commit messages from git diffs. Use when writing commit messages or reviewing staged changes.
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
# Generating Commit Messages
|
|
146
|
+
|
|
147
|
+
## Instructions
|
|
148
|
+
|
|
149
|
+
1. Run `git diff --staged` to see changes
|
|
150
|
+
2. I'll suggest a commit message with:
|
|
151
|
+
- Summary under 50 characters
|
|
152
|
+
- Detailed description
|
|
153
|
+
- Affected components
|
|
154
|
+
|
|
155
|
+
## Best practices
|
|
156
|
+
|
|
157
|
+
- Use present tense
|
|
158
|
+
- Explain what and why, not how
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Complete Example: Code Explanation Skill
|
|
162
|
+
|
|
163
|
+
```markdown
|
|
164
|
+
---
|
|
165
|
+
name: explaining-code
|
|
166
|
+
description: Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
# Explaining Code
|
|
170
|
+
|
|
171
|
+
When explaining code, always include:
|
|
172
|
+
|
|
173
|
+
1. **Start with an analogy**: Compare the code to something from everyday life
|
|
174
|
+
2. **Draw a diagram**: Use ASCII art to show the flow, structure, or relationships
|
|
175
|
+
3. **Walk through the code**: Explain step-by-step what happens
|
|
176
|
+
4. **Highlight a gotcha**: What's a common misconception?
|
|
177
|
+
|
|
178
|
+
Keep explanations conversational. For complex concepts, use multiple analogies.
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Distribution
|
|
182
|
+
|
|
183
|
+
- **Project Skills**: Commit `.antigravity/skills/` to version control
|
|
184
|
+
- **Plugins**: Add `skills/` directory to plugin with Skill folders
|
|
185
|
+
- **Enterprise**: Deploy organization-wide through managed settings
|