- Introduced graphviz conventions for visualizing process flows in writing skills. - Added a comprehensive guide on persuasion principles to improve skill design effectiveness. - Implemented a script to render graphviz diagrams from markdown files to SVG format. - Created a detailed reference for testing skills with subagents, emphasizing TDD principles. - Established a task tracker template for live task management. - Developed a shell script to check the integrity of the antigravity profile and required files. - Added test scripts to validate the initialization of agent projects. - Created workflows for brainstorming, executing plans, and writing plans to streamline processes.
3.3 KiB
3.3 KiB
Antigravity Superpowers Current Flow
This document explains the active workflow used by the Antigravity profile in this folder.
1) Session Start
- Load rules from
.agent/AGENTS.md. - Load
.agent/skills/using-superpowers/SKILL.md. - Before any action, check whether a relevant skill should be loaded from:
.agent/skills/<skill-name>/SKILL.md(preferred)~/.gemini/skills/<skill-name>/SKILL.md(fallback)
- Ensure
<project-root>/docs/plans/task.mdexists as a list-only table (no instructions).
2) Skill-First Routing
For each user request:
- Identify the best matching skill.
- Announce and follow that skill.
- If the skill has a checklist, track progress in
<project-root>/docs/plans/task.md.
3) Design Before Implementation
If the request involves creating/changing behavior:
- Run
brainstorming. - Explore context and ask clarifying questions.
- Propose approaches and get approval.
- Write design doc to
docs/plans/YYYY-MM-DD-<topic>-design.md. - Move to
writing-plans.
4) Planning Stage
writing-plans creates a detailed implementation plan:
- Save plan to
docs/plans/YYYY-MM-DD-<feature-name>.md. - Break work into small, verifiable steps.
- Include exact files, commands, and expected outputs.
- Handoff to execution via
.agent/workflows/execute-plan.md(single entrypoint). - The workflow loads
executing-plans, which enforcessingle-flow-task-executionrules.
5) Execution Model (Single-Flow)
Core execution rules from .agent/AGENTS.md and single-flow-task-execution:
- One active task at a time.
- One coding execution thread at a time.
- Use
task_boundaryfor coding tasks. - Use
browser_subagentonly for browser-specific tasks. - Update
<project-root>/docs/plans/task.mdon every task state change.
Per-task loop:
- Mark task
in_progress. - Implement scoped change.
- Run verification commands.
- Fix and re-run until passing.
- Mark task
donewith notes.
6) Verification Gate
Before any completion claim (verification-before-completion):
- Identify the command that proves the claim.
- Run it now (fresh).
- Read full output and exit code.
- Report evidence.
- Only then claim completion.
7) Finish Branch
After all tasks are complete and verified (finishing-a-development-branch):
- Re-run required tests.
- Present workflow options (merge, PR, keep branch, discard).
- Execute selected option safely.
- Require explicit confirmation for destructive actions.
8) Profile Validation Flow
Validate this profile itself with:
bash templates/.agent/tests/run-tests.sh
run-tests.sh calls check-antigravity-profile.sh, which verifies:
- Required files exist
- Skill frontmatter is valid
- Legacy patterns are removed
- AGENTS mapping contract is present
Flow Diagram
flowchart TD
sessionStart[Session start] --> useSkill[Load using-superpowers]
useSkill --> routeSkill[Select and load relevant skill]
routeSkill --> designGate{Behavior/design change?}
designGate -->|yes| brainstorming[Brainstorming]
brainstorming --> writingPlans[Writing plans]
designGate -->|no| execution[Single-flow execution]
writingPlans --> execution
execution --> verify[Verification before completion]
verify --> finish[Finish development branch]
finish --> done[Done]