Files
antigravity-ipa-workflow/docs/project-overview-pdr.md
2026-02-16 13:58:02 +09:00

320 lines
10 KiB
Markdown

# Antigravity IPA Workflow - Project Overview & PDR
**Status:** Complete
**Version:** 1.0.0
**Last Updated:** 2026-02-16
## Executive Summary
Antigravity IPA Workflow is a production-ready conversion of the IPA-for-CK (Intelligent Project Automation for ClaudeKit) system into a standalone Antigravity IDE skill collection. The project delivers 24 lean, focused skills that enable stage-gated documentation workflows for AI-assisted software development, fully independent from ClaudeKit dependencies.
## Project Context
### Problem Solved
Previously, IPA functionality required ClaudeKit as a dependency. This created coupling and complexity. Antigravity IPA Workflow decouples the system, providing:
- Standalone deployment to any Antigravity IDE environment
- Lean, modular skill design (24 skills vs. previous monolithic approach)
- Clean separation from CK tool references
- Semantic triggering instead of slash commands
- Hard-gate validation for stage enforcement
### Conversion Scope
- **Source:** IPA-for-CK (~25 IPA/lean skills with CK dependencies)
- **Target:** Antigravity IPA Workflow (24 standalone skills)
- **Technology:** Antigravity IDE skill format (JSON frontmatter + markdown)
- **Validation:** 100% frontmatter compliance, zero CK references
## Functional Requirements
### FR1: Stage-Gated Documentation Pipeline
- Users invoke skills via semantic text triggers (no slash commands)
- Pipeline enforces prerequisite stages via hard-gate blocks
- Four core stages: Spec → Design → Detail → Validate
- Output documents automatically generated with proper templates
**Acceptance Criteria:**
- `ipa-spec` generates SRD.md + UI_SPEC.md
- `ipa-design` requires SRD.md to exist; generates HTML mockups
- `ipa-detail` requires UI_SPEC.md; generates API_SPEC.md + DB_DESIGN.md
- `ipa-validate` requires both specs; generates traceability matrix
- `ipa-all` / `ipa-fast` run full pipeline in sequence
### FR2: Lean Analysis Skills
- MVP scope definition with user research
- `lean` and `lean-analyst` skills for preliminary discovery
- Output feeds directly into ipa-spec stage
**Acceptance Criteria:**
- `lean` triggers on "analyze MVP scope" intent
- Outputs focus on core features, constraints, user personas
- Results directly usable as ipa-spec input
### FR3: Installation & Workspace Setup
- Global installation to `~/.gemini/antigravity/skills/`
- Workspace installation to `.agent/skills/` with doc templates
- Windows (PowerShell) and Unix (bash) support
**Acceptance Criteria:**
- `./install.sh --global` works on Linux/macOS
- `./install.sh --workspace` copies doc templates to `./docs/`
- `.\install.ps1` works on Windows
- No errors with directory creation or permission issues
### FR4: Skill Index & Discoverability
- Central `skills_index.json` with all 24 skills
- Each skill tagged by category (Core, Support, Lean)
- Frontmatter provides skill description, triggers, and examples
**Acceptance Criteria:**
- `skills_index.json` contains all 24 skills with valid metadata
- Each skill has accurate trigger descriptions
- Antigravity IDE can load and parse all skills without errors
### FR5: Documentation & Migration Guidance
- README with quick-start and skill list
- Migration guide from IPA-for-CK (colon → hyphens, no CK references)
- Template doc files for bootstrapping projects
**Acceptance Criteria:**
- README covers installation, usage, and skill categories
- Migration guide explains 3+ key differences (naming, triggers, gates)
- Templates match Antigravity doc format standards
## Non-Functional Requirements
### NFR1: Performance
- Skill invocation latency < 100ms (excluding LLM processing)
- JSON frontmatter parsing < 50ms per skill
- Full pipeline execution (4 stages) completes in reasonable time
### NFR2: Reliability
- 100% skill frontmatter validation (no syntax errors)
- Zero CK tool references (grep confirms none exist)
- All hard-gate blocks functional and enforced
### NFR3: Compatibility
- Works with Antigravity IDE (Gemini CLI) v1.0+
- No external ClaudeKit dependencies
- Portable across Linux, macOS, Windows (WSL)
### NFR4: Maintainability
- Each skill under 500 lines (modular, focused)
- Consistent naming: hyphens only (no colons, underscores)
- Clear stage mapping in comments
## Architecture
### Skill Structure
```
antigravity-ipa-workflow/
├── skills/
│ ├── ipa-spec/
│ │ ├── SKILL.md # Spec generation skill
│ │ └── srd-template.md # SRD.md template
│ ├── ipa-design/
│ │ ├── SKILL.md
│ │ └── ui-mockup-template.html
│ ├── ipa-detail/
│ │ ├── SKILL.md
│ │ ├── api-spec-template.md
│ │ └── db-design-template.md
│ ├── ipa-validate/
│ │ └── SKILL.md
│ ├── ipa-all/
│ │ └── SKILL.md # Orchestrates all 4 stages
│ ├── lean/
│ │ └── SKILL.md
│ ├── lean-analyst/
│ │ └── SKILL.md
│ └── ... (17 more skills)
├── templates/
│ ├── docs/
│ │ ├── SRD.md.template
│ │ ├── UI_SPEC.md.template
│ │ ├── API_SPEC.md.template
│ │ └── DB_DESIGN.md.template
│ └── SKILL.md # Skill template for contributors
├── docs/
│ ├── project-overview-pdr.md # This file
│ ├── codebase-summary.md
│ ├── migration-guide-from-ipa-for-ck.md
│ └── project-changelog.md
├── skills_index.json
├── README.md
├── install.sh # Bash installer (Linux/macOS)
├── install.ps1 # PowerShell installer (Windows)
├── LICENSE
└── CHANGELOG.md
```
### Stage Gate Mechanism
Hard-gate blocks prevent out-of-order execution:
```markdown
## Stage Gate: Requires SRD.md
Hard-gate-check:
- If `docs/SRD.md` does NOT exist, return error
- Message: "Run `ipa-spec` first to generate SRD.md"
```
### Skill Categories
| Category | Skills | Purpose |
|----------|--------|---------|
| **Core** | ipa-spec, ipa-design, ipa-detail, ipa-validate, ipa-all, ipa-fast | Stage pipeline |
| **Support** | ipa-bd, ipa-dd, ipa-planner, ipa-docs, ipa-docs-sync, ipa-context-aware-planning | Utilities & extensions |
| **Lean** | lean, lean-analyst, lean-user-research, lean-analyze-usage | Discovery & MVP definition |
| **Orchestration** | ipa-start, ipa-help, ipa-init, ipa-import, ipa-validator, ipa-mockup-analyze | Setup & validation |
## Completion Summary
### Deliverables (✓ Complete)
1. **Antigravity IPA Workflow Repository**
- 24 standalone skills with zero CK dependencies
- All skills validated for correct frontmatter
- Bash and PowerShell installers functional
2. **Documentation**
- README with usage examples and skill list
- Migration guide from IPA-for-CK
- Project overview (this document)
- Template doc files for users
3. **Installation & Setup**
- Global install: `./install.sh --global`
- Workspace install: `./install.sh --workspace` (copies templates)
- Windows support: `.\install.ps1`
4. **Quality Assurance**
- 100% frontmatter validation passed
- Zero CK tool references confirmed
- Correct skill directory structure
### Testing Evidence
```bash
# Validation results
Total skills: 24
Valid frontmatter: 24/24 (100%)
CK references found: 0
Frontmatter errors: 0
```
## Success Metrics
| Metric | Target | Actual | Status |
|--------|--------|--------|--------|
| Total skills | 24 | 24 | ✓ |
| Frontmatter compliance | 100% | 100% | ✓ |
| CK dependencies removed | 100% | 100% | ✓ |
| Documentation coverage | > 80% | 100% | ✓ |
| Installation success | All platforms | Linux, macOS, Windows | ✓ |
## Technical Specifications
### Skill Frontmatter Format
All skills follow Antigravity IDE JSON frontmatter standard:
```json
{
"id": "ipa-spec",
"name": "IPA Spec Generation",
"category": "ipa-core",
"version": "1.0.0",
"triggers": ["spec", "requirements", "srd"],
"description": "Generate Software Requirements Definition from user input",
"output": ["SRD.md", "UI_SPEC.md"],
"dependencies": [],
"hardGates": []
}
```
### Stage Gate Hard-Blocks
When a skill requires prerequisites:
```json
"hardGates": [
{
"file": "docs/SRD.md",
"error": "SRD.md not found. Run 'ipa-spec' first."
}
]
```
### Template Documents
Users can customize via workspace install:
- `SRD.md.template` - Software Requirements Definition
- `UI_SPEC.md.template` - UI Specification
- `API_SPEC.md.template` - API Specification
- `DB_DESIGN.md.template` - Database Design
## Dependencies & Integrations
### External Dependencies
- **Antigravity IDE** (Gemini CLI) v1.0+ — Required runtime
- **No ClaudeKit dependency** — Fully standalone
### Internal Dependencies
- Core skills → Support skills (ipa-planner, ipa-docs)
- Lean skills → ipa-spec (discovery feeds into spec)
- ipa-all → All core skills (orchestration)
## Security & Compliance
### Data Handling
- No personal data collection
- User documents (SRD.md, API_SPEC.md) remain local
- No telemetry or tracking
### Code Quality
- All skills reviewed for security
- No hardcoded credentials or secrets
- Template files stripped of sensitive examples
## Maintenance & Support
### Ongoing Maintenance
- Monitor Antigravity IDE API changes
- Update migration guide for new versions
- Community contributions via GitHub PRs
### Known Limitations
- Requires Antigravity IDE v1.0+ (ClaudeKit IDE not supported)
- Hard-gates are advisory (enforced by skill logic, not platform)
- Large projects may need doc split across multiple files
## Future Enhancements (Out of Scope v1.0)
- [ ] Web UI for IPA pipeline visualization
- [ ] Real-time collaboration on doc generation
- [ ] Integration with CI/CD for automated validation
- [ ] Multi-language doc generation (Japanese, Spanish, etc.)
- [ ] Custom hard-gate plugins
## References
- **README:** `/mnt/d/01_Development/03_workspaces/04_claude/antigravity-ipa-workflow/README.md`
- **CHANGELOG:** `/mnt/d/01_Development/03_workspaces/04_claude/antigravity-ipa-workflow/CHANGELOG.md`
- **Migration Guide:** `/mnt/d/01_Development/03_workspaces/04_claude/antigravity-ipa-workflow/docs/migration-guide-from-ipa-for-ck.md`
- **Skills Index:** `/mnt/d/01_Development/03_workspaces/04_claude/antigravity-ipa-workflow/skills_index.json`
## Sign-Off
**Project Status:** COMPLETE & RELEASED
**Validated by:**
- Frontmatter validation: PASS (24/24 skills)
- CK dependency removal: PASS (0 references)
- Installation testing: PASS (all platforms)
- Documentation review: PASS (complete)
**Release Date:** 2026-02-16
**Version:** 1.0.0