aida:resume
AIDA Resume - Continue from last session state. Reads session.json and resumes from where AIDA left off. Useful for continuing interrupted implementations.
What this skill does
# AIDA Resume
Continue AIDA execution from the last saved session state.
## Usage
```
/aida:resume
```
Or with specific project:
```
/aida:resume twitter-clone
```
---
## MANDATORY EXECUTION PROTOCOL
**You MUST follow this protocol exactly. Do NOT deviate.**
---
## Step 1: Read Session State
Read `.aida/state/session.json` to understand current state:
```bash
cat .aida/state/session.json
```
Extract key information:
- `current_phase` - Which phase are we in?
- `project_name` - What project?
- `pending_tasks` - What's left to do?
- `completed_tasks` - What's already done?
- `quality_gates_passed` - Have gates passed?
---
## Step 2: Determine Resume Point
Based on `current_phase`:
| Phase | Action |
|-------|--------|
| `SPEC_PHASE` | Resume specification generation (Phases 1-4) |
| `IMPL_PHASE` | Resume implementation (Phase 5) |
| `COMPLETED` | Project already done - show status |
| Missing/Empty | No session - suggest `/aida` instead |
---
## Step 3: Resume Based on Phase
### If SPEC_PHASE:
1. Check which spec outputs exist:
- `.aida/specs/{{PROJECT}}-requirements.md`
- `.aida/specs/{{PROJECT}}-design.md`
- `.aida/specs/{{PROJECT}}-tasks.md`
2. If any missing, launch Leader-Spec to complete:
```
Task tool:
description: "Leader-Spec: Complete Remaining Phases"
subagent_type: "general-purpose"
model: "sonnet"
prompt: [see leader-spec.md]
```
3. After completion, transition to IMPL_PHASE
### If IMPL_PHASE:
1. Check what implementation exists:
```bash
ls -la ./backend/
ls -la ./frontend/
ls -la ./docker-compose.yml
```
2. Run quality gates to see what's failing:
```bash
./scripts/quality-gates.sh {{PROJECT}}
```
3. Based on failures, launch appropriate Players:
- Backend tests failing → Launch Backend Player
- Frontend tests failing → Launch Frontend Player
- Docker failing → Launch Docker Player
- E2E failing → Fix E2E tests
4. Iterate until ALL gates pass
### If COMPLETED:
Show project status and exit:
```
Project {{PROJECT}} is already complete.
Quality Gates: ALL PASSED
Location: ./
To run the project:
docker compose up -d
```
---
## Step 4: Continue with Quality Gate Loop
After resuming, follow the standard quality gate iteration:
```
┌─────────────────────────────────────────────────────────────────┐
│ 1. RUN GATES → ./scripts/quality-gates.sh {{PROJECT}} │
│ │
│ 2. IF FAILED: │
│ → Identify failing gates │
│ → Fix issues (add tests, fix code, etc.) │
│ → GOTO step 1 │
│ │
│ 3. IF ALL PASS: │
│ → Update session.json: quality_gates_passed = true │
│ → Update kanban.md │
│ → Output "DONE" │
└─────────────────────────────────────────────────────────────────┘
```
---
## Step 5: Update Session State
After each action, update `.aida/state/session.json`:
```json
{
"resumed_at": "<ISO8601>",
"resume_count": N+1
}
```
---
## Example Session Read
```json
{
"session_id": "aida-20260111-twitter-clone",
"current_phase": "IMPL_PHASE",
"project_name": "twitter-clone",
"pending_tasks": ["impl-frontend", "quality-gates"],
"completed_tasks": ["spec-requirements", "spec-design", "spec-tasks", "impl-backend"],
"quality_gates_passed": false
}
```
This tells us:
- Phase: Implementation (Phase 5)
- Backend is done
- Frontend is pending
- Quality gates haven't passed yet
Resume action: Launch Frontend Player, then run quality gates.
---
## Error Handling
### No Session File
```
No active AIDA session found.
To start a new project:
/aida "Your project description"
To check status:
/aida:status
```
### Corrupted Session
If session.json is malformed:
1. Try to read kanban.md for state
2. Check ./ for existing implementation
3. Reconstruct session state from artifacts
### Project Directory Missing
If ./{{PROJECT}} doesn't exist but session says IMPL_PHASE:
1. Reset to SPEC_PHASE
2. Verify specs exist
3. Re-launch implementation
---
## Related Commands
| Command | Description |
|---------|-------------|
| `/aida` | Start new project from scratch |
| `/aida:status` | Check current state without resuming |
| `/aida:fix` | Fix existing project to meet quality gates |
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.