skills/project-lifecycle/SKILL.md
Use when starting a new project or feature that requires multi-phase planning, when completing a phase and needing structured cleanup, when a plan changes mid-execution and artifacts need updating, when something fails and the failure needs documenting to prevent repetition, or when ending a session with work in progress. Use when any project has more than 3 tasks or spans multiple sessions. Do NOT use for: single-file edits, trivial changes, or exploratory research without deliverables (use writing-plans for plan creation, executing-plans for plan execution mechanics, systematic-debugging for bug investigation).
npx skillsauth add sharkitect-solutions/sharkitect-claude-toolkit project-lifecycleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Structured methodology for managing projects through phases with automated cleanup, persistent learning, and zero-drift session continuity. Prevents orphaned documents, stale references, duplicate tasks, and repeated failures.
| File | Load When | Do NOT Load |
|------|-----------|-------------|
| SKILL.md | Always -- core protocols | -- |
| references/phase-completion-checklist.md | Phase completes or pauses | During plan creation |
| references/failure-documentation-template.md | Something fails or errors | During normal execution |
| references/plan-decomposition-guide.md | New project starts, plan needs structuring | During phase execution |
| This Skill | Use Instead |
|------------|-------------|
| Phase lifecycle management (start, execute, complete, pause) | writing-plans for initial plan drafting mechanics |
| Document cleanup and orphan prevention | executing-plans for step-by-step plan execution |
| Failure documentation and learning loops | systematic-debugging for root cause analysis |
| Session handoff and continuity | dispatching-parallel-agents for concurrent task execution |
| Plan change management | subagent-driven-development for agent-based implementation |
At project start, or when requirements arrive that need multi-step implementation.
Requirements received
│
├─ Fewer than 4 tasks? → Skip this skill. Do inline.
│
├─ 4-15 tasks? → Single plan, break into 2-4 phases
│
└─ 15+ tasks? → Break into phases of 5-8 tasks each
│
└─ Any task has >10 sub-items? → Promote to its own phase
.claude/plans/ (Claude Code native) or project-specific location..tmp/active-phase.json when a phase starts:
{"number": 1, "name": "Phase name", "started": "ISO-timestamp", "tasks_total": 5, "tasks_done": 0, "plan_file": "path/to/plan"}
| Anti-pattern | Consequence | Do this instead | |-------------|-------------|-----------------| | Create a second plan file when the first needs updating | Orphaned plan file causes confusion in future sessions | Update the existing plan file in-place | | Start Phase 2 without completing Phase 1 protocol | Orphans accumulate, memory gaps, GitHub falls behind | Always run Phase Completion Protocol between phases | | Put 20+ tasks in a single phase | Context window overflow, lost tracking, no checkpoints | Split into phases of 5-8 tasks maximum | | Track tasks in your head instead of TodoWrite | Tasks get lost on compact, no visibility for user | Always use TodoWrite for task tracking | | Skip complexity assessment | Discover mid-phase that a task is actually 15 sub-tasks | Assess before starting: >10 sub-items = its own phase | | Create .tmp files without tracking them | Orphans accumulate invisibly | phase-gate plugin tracks automatically, but name files clearly |
During active work on a phase's tasks.
.tmp/active-phase.json.lessons-learned.md (project) AND ~/.claude/lessons-learned.md (global) for relevant prior failures. Grep for keywords related to the tools/APIs you are about to use.in_progress before starting, completed immediately after finishing..tmp/active-phase.json (increment tasks_done).HUMAN-ACTION-REQUIRED.md in project root.# Human Action Required
Items that require manual intervention. AI will remind you at session start.
- [ ] Delete deprecated Airtable tables: DEPRECATED_leads, DEPRECATED_contacts
- [ ] Rotate API key for n8n (expires 2026-04-15)
- [ ] Review and approve PR #47 before next phase can start
When ALL tasks in the current phase are done. This is mandatory -- never skip it.
references/phase-completion-checklist.mdStep 1 -- AUDIT
Invoke the lifecycle-auditor agent (or perform manually if agent unavailable):
.tmp/ for artifacts created during this phase (listed in .tmp/phase-artifacts.json)Step 2 -- MEMORY
lessons-learned.md (project): any failures or learnings from this phase~/.claude/lessons-learned.md (global)Step 3 -- LOG (optional)
SUPABASE_URL exists in .env: log phase completion to SupabaseAIRTABLE_API_KEY exists in .env: log to Airtable{phase_name, phase_number, status, project, tasks_completed, duration, key_outcomes, timestamp}Step 4 -- SYNC
git status for uncommitted changesgit add relevant files, commit with message: "Complete Phase N: [phase name] - [summary]", push to remoteStep 5 -- CHECKPOINT
.tmp/active-phase.json: mark as "status": "complete".tmp/phase-artifacts.jsonWhen the user modifies the plan, changes direction, removes tasks, or restructures phases mid-execution. The phase-gate plugin PostToolUse hook will remind you when it detects a plan file was modified.
Step 1 -- DIFF Identify what changed:
Step 2 -- CLEANUP
.tmp/phase-artifacts.json → remove entries for deleted artifacts.Step 3 -- CROSS-REFERENCE UPDATE
Step 4 -- LOG THE CHANGE
"Phase X plan revised: [what changed] [why]"| Anti-pattern | Consequence | Do this instead | |-------------|-------------|-----------------| | Create a new plan file instead of updating | Two plans exist, confusion in future sessions | Update the existing plan in-place | | Remove a task from the plan but leave its artifacts | Orphaned files confuse future sessions | Delete artifacts when removing their parent task | | Update the plan but not TodoWrite | AI works from stale task list | Always sync TodoWrite with plan changes | | Forget to update MEMORY.md about the change | Next session doesn't know the plan changed | Always note plan changes in memory |
When any operation fails, errors out, or produces unexpected results. Apply IMMEDIATELY -- do not defer to end of phase.
references/failure-documentation-template.mdStep 1 -- Document in project lessons-learned.md
## [YYYY-MM-DD] [Category]: [Short title]
**Attempted:** What was tried (specific command, API call, approach)
**Error:** What happened (error message, unexpected behavior)
**Solution:** What worked instead (the fix or workaround)
**Tags:** [category tags for grep matching]
Categories: api-limitation, tool-usage, approach, configuration, dependency, permissions, rate-limit, timeout
Step 2 -- Assess cross-project relevance Is this failure specific to THIS project, or would it apply to any project using this tool/API?
~/.claude/lessons-learned.mdStep 3 -- Human action needed? If the failure reveals something the AI cannot fix (e.g., manual UI deletion, credential rotation):
HUMAN-ACTION-REQUIRED.md with clear instructionsAt session end -- whether closing, compacting, or pausing. The phase-gate Stop hook will remind you if a phase is in progress.
"Next session: Phase N, Task M. [context needed to continue]"lessons-learned.md is current with any failures from this sessionHUMAN-ACTION-REQUIRED.md exists if there are pending manual items.tmp/active-phase.json reflects current state:
| Scenario | Action | |----------|--------| | All tasks in phase done | Run full Phase Completion Protocol (Protocol 3) | | Stopping mid-phase by choice | Mark as "paused", update memory with resume point, push to GitHub | | Compacting (context limit) | aios-core PreCompact preserves state; phase-gate PreCompact saves phase state |
At the start of every session. The aios-core SessionStart hook provides automated reminders, but the AI should also actively check.
.tmp/active-phase.json: is a phase in progress or paused?HUMAN-ACTION-REQUIRED.md: any pending items for the user?lessons-learned.md (project) for relevant prior failures~/.claude/lessons-learned.md (global) for cross-project learnings.tmp/phase-state-backup.json: was there a compaction? Recover state if needed.| File | Location | Scope | Created by | Read by |
|------|----------|-------|-----------|---------|
| active-phase.json | .tmp/ | Session | This skill | phase-gate hooks, aios-core |
| phase-artifacts.json | .tmp/ | Session | phase-gate hook | lifecycle-auditor agent |
| phase-state-backup.json | .tmp/ | Survives compact | phase-gate PreCompact | This skill (Protocol 7) |
| lessons-learned.md | Project root | Persistent | This skill (Protocol 5) | This skill (Protocol 2, 7) |
| lessons-learned.md | ~/.claude/ | Global persistent | This skill (Protocol 5) | This skill (Protocol 2, 7) |
| HUMAN-ACTION-REQUIRED.md | Project root | Persistent | This skill (Protocol 2, 5) | aios-core, this skill |
development
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
testing
--- name: using-sharkitect-methodology description: Use when starting any conversation in a Sharkitect workspace OR before any task involving NEW pricing, positioning, proposal, strategy, plan-execution, or schema-design work — mandates invocation of Sharkitect-specific methodology skills (pricing-strategy, marketing-strategy-pmm, smb-cfo, hq-revenue-ops, executing-plans, brainstorming) under the same anti-rationalization discipline as using-superpowers. Documentation has failed 4 times across H
testing
Use when user says 'end session', 'wrap up', 'stop for the day', 'done for today', 'close out', 'save session', 'wrapping up', or invokes /end-session. Runs the full 9-step end-of-session protocol: resource audit, MEMORY.md update, lessons capture, plan status, pending items, workspace checklist, .tmp/ audit, git commit+push, Supabase brain sync, session brief, summary. Final step schedules a detached self-kill of the current session ONLY (3s delay) so the window closes cleanly. Other claude.exe processes (active workspaces) are NOT touched -- orphan cleanup is handled separately by Claude-Orphan-Cleanup-Hourly with proper age safeguards. Do NOT use for: mid-session quick saves (use session-checkpoint), skill syncing (use sync-skills.py), brain memory queries (use supabase-sync.py pull), document freshness reviews (use document-lifecycle), resource gap detection (use resource-auditor).
testing
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, passive voice, negative parallelisms, and filler phrases.