lee-to/ai-factory/aif-implement
- community
Checking that the SKILL.md file is still in the repository.
Execute implementation tasks from the current plan. Works through tasks sequentially, marks completion, and preserves progress for continuation across sessions. Use when user says "implement", "start coding", "execute plan", or "continue implementation".
Install
npx vskill@latest install lee-to/ai-factory/aif-implementSKILL.md
Implement - Execute Task Plan
Execute tasks from the plan, track progress, and enable session continuation.
Workflow
Step 0 (pre): Detect Handoff Mode
Determine Handoff mode. If the caller passed HANDOFF_MODE and HANDOFF_SKIP_REVIEW as explicit text in the prompt, use those values. Otherwise, use the Bash tool:
Then check `HANDOFF_MODE`:
When HANDOFF_MODE is 1 (autonomous Handoff agent)
The Handoff coordinator already manages status transitions and DB writes directly. Do NOT call MCP tools. Instead:
- No interactive questions: Do not use
AskUserQuestion— use sensible defaults (auto-commit at checkpoints, skip pause prompts). - No pause/resume prompts: Execute all tasks sequentially without stopping
for confirmation. Blocking integrity, safety, or requirement conflicts still stop with their defined non-interactive outcome.
When HANDOFF_MODE is NOT 1 (manual Claude Code session)
Handoff sync is handled inline — see Step 0.2 (after reading the plan file) for the task ID extraction and MCP sync trigger. The sync points are:
- On start (Step 0.2):
handoff_sync_status→"implementing"(withpaused: true) - On checklist update (Step 3.6):
handoff_push_planwith updated plan content - On completion (Step 5):
handoff_push_planwith final plan, thenhandoff_sync_status→"review"(withpaused: true) or"done"(withpaused: falsewhenHANDOFF_SKIP_REVIEW=1)
CRITICAL: Always pass paused: true with every handoff_sync_status call except done. This prevents the autonomous Handoff agent from picking up the task while you work manually. Only done passes paused: false.
Step 0: Check Current State
FIRST: Determine what state we're in:
Step 0.list: List Available Plans (--list)
If $ARGUMENTS contains --list, run read-only plan discovery and stop.
Important: In --list mode:
- Do not execute tasks
- Do not modify files
- Do not update TaskList statuses
For detailed output format and examples, see:
skills/aif-implement/references/IMPLEMENTATION-GUIDE.md→ "List Available Plans (--list)"
Step 0.inline: Inline Implementation Mode (--without-plan)
If $ARGUMENTS contains --without-plan, execute a single scoped task from the description WITHOUT creating or reading any plan file. This is the lightweight path for small feat/chore tasks that do not justify a full plan but are not bug fixes either (use /aif-fix for bugs).
Argument parsing:
Scope guard (prevent silent mega-tasks):
Before executing, assess the description. If it looks too broad for a one-shot inline task — multiple unrelated imperatives joined by "and"/"и", references to multiple subsystems, or roughly more than ~300 characters of scope — do NOT attempt to guess a plan. Instead print:
→ STOP.
Small, focused descriptions (e.g. "add GET /healthz returning 200 with {status:\"ok\"}") proceed.
Surprise-warn on existing plan artifacts (non-blocking):
Inline mode ignores plan files by design. If any of these exist on disk, emit a WARN [inline] line so the user notices the intentional skip (do NOT read them, do NOT redirect):
<configured plans dir>/<branch>.mdor
<configured plans dir>/<branch>/index.md (git mode only) — or their [0-9]{4}_<branch> sequential forms
- resolved fast plan path (
paths.plan) - resolved fix plan path (
paths.fix_plan)
Example: WARN [inline] paths.plan exists but is ignored in --without-plan mode.
Load project context (same as regular implement):
Use the resolved config from Step 0:
paths.description(DESCRIPTION.md) if presentpaths.architecture(ARCHITECTURE.md) if presentpaths.rules_file(RULES.md) +rules.base+ namedrules.<area>entries.ai-factory/skill-context/aif-implement/SKILL.md— MANDATORY if the file exists (same precedence and enforcement as regular mode in Step 0.1)language.ui,language.artifacts
Plan artifact policy: inline mode does NOT load or use plan/fix-plan files. Plan files are never read, parsed, or executed. A minimal existence probe is permitted (see the surprise-warn section above) solely to emit the WARN [inline] line — nothing is read from disk. Also skip: resume/recovery reconciliation, TaskList loading, checkbox state comparison.
Execute the task (one-shot):
- Announce:
Inline implementation: <description> - Read only files relevant to the described scope
- Apply changes following existing code patterns and skill-context rules
- Apply verbose logging per
references/LOGGING-GUIDE.md - Do not add tests by default. Add them only if the description explicitly requests tests (e.g. "with tests", "add tests for X") OR if existing project conventions / touched code paths clearly require them (e.g. a test file mirrors every source file in the area being changed, or a RULES.md / skill-context rule mandates test coverage for this kind of change). When in doubt, prefer NO tests and let the user follow up via
/aif-planif wider test coverage is needed. - Verify the change compiles/runs and the described behavior works
Prohibited in inline mode:
- Do NOT create or read
paths.plan/paths.plans/*/paths.fix_plan. - Do NOT invoke
/aif-planor/aif-fix. - Do NOT create entries under
paths.patches(no[FIX]self-improvement patch — this is not a bugfix flow). - Do NOT call
TaskList/TaskGet/TaskUpdate(no plan = no persisted tasks). - Do NOT search for or modify plan checkboxes on disk.
- Do NOT trigger the roadmap milestone completion check, docs checkpoint-from-plan-setting, plan-file cleanup prompt, or worktree merge prompt (those belong to the plan-backed workflow).
Handoff inline support:
Naming clarification:--without-planmeans "without a local plan artifact on disk" (nopaths.plan/paths.plans/*/paths.fix_plan). When a Handoff task is linked, the task is still represented as a synthetic plan inside Handoff viahandoff_push_plan— that's a remote representation, not a local file. The local-no-plan contract is preserved; only the remote sync surface is unchanged.
When `HANDOFF_MODE` is `1` (autonomous Handoff agent invoked inline mode):
- Do NOT call any
mcp__handoff__*tool (the coordinator manages status/sync directly — same rule as Step 0 (pre)). - Do NOT create local plan artifacts (the regular Prohibited list above still applies).
- Do NOT switch branches, create worktrees, merge worktrees, or otherwise alter the branch/worktree the coordinator set up — inline mode operates on the working tree it was invoked in.
- Proceed with the one-shot execution; the coordinator marks the task complete after the skill returns.
When `HANDOFF_MODE` is NOT `1` and `HANDOFF_TASK_ID` is set (manual Claude Code session linked to a Handoff task):
- Build synthetic plan content:
```markdown # Inline implementation
- [ ] <description>
```
- Call
handoff_sync_statuswith{ taskId: <HANDOFF_TASK_ID>, newStatus: "implementing", sourceTimestamp: "<current UTC ISO 8601>", direction: "aif_to_handoff", paused: true }. - Call
handoff_push_planwith{ taskId: <HANDOFF_TASK_ID>, planContent: <synthetic content above> }. - After successful execution, flip the checkbox to
- [x]in the synthetic content and callhandoff_push_planagain with the updated text. - Finalize sync:
- If
HANDOFF_SKIP_REVIEWis1→handoff_sync_status→"done"withpaused: false. - Otherwise →
handoff_sync_status→"review"withpaused: true.
If HANDOFF_TASK_ID is missing → skip all MCP sync for this run.
Docs policy (inline mode, driven by `--docs`):
--docs=yes→ after completion, show the docs checkpoint (same AskUserQuestion asDocs: yesin regular mode) and route changes through/aif-docs.--docs=no→ suppress the documentation checkpoint, emitWARN [docs] --docs=no in inline mode; documentation checkpoint skipped.--docs=warn(default) → emitWARN [docs] Inline mode default is warn-only; documentation checkpoint skipped. Pass --docs=yes to enable.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aif-implement/SKILL.md
Popularity
- Repository stars
- 651
- Repository forks
- 59
- Repository npm downloads, 7 days
- 598
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 3 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lee-to/ai-factory/aif-implement)