ワンクリックで
agenfk
Agile, measurable, and reliable workflow enforcement for AI-assisted engineering.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Agile, measurable, and reliable workflow enforcement for AI-assisted engineering.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | agenfk |
| description | Agile, measurable, and reliable workflow enforcement for AI-assisted engineering. |
| metadata | {"framework":"agenfk","workflow":"agile"} |
This skill enforces the core AgenFK Engineering workflow to ensure all software tasks are Agile, Measurable, Visual, Repeatable, Reliable, and Flexible.
Use the
agenfkCLI for all workflow operations (CLI-only is the default; read with--jsonfor machine-readable output). Ifmcp__agenfk__*tools are present (installed with--with-mcp), the equivalent MCP tool is interchangeable.AgEnFK is CLI-only by default. Drive every workflow operation with the
agenfkCLI — it talks to the AgEnFK server (the single owner of state) and is fully enforced server-side. TheagenfkCLI commands are the primary interface; see the Interface section below. If you installed with--with-mcpandmcp__agenfk__*tools are present, you may use them instead — they are interchangeable.
MANDATORY: You are strictly prohibited from modifying ANY file in the codebase without an active task in an active working step and a successful
agenfk gatekeepercall. Bypassing this workflow is a critical operational failure.
IN_PROGRESS, stop immediately and create one.agenfk gatekeeper --intent "<intent>" before the first edit of every session.git commit, npm test, or direct file writes to circumvent agenfk verify.AgenFK supports two distinct operation modes based on the slash command invoked:
/agenfk)agenfk comment <itemId> "<content>" for EVERY significant tool execution or logical step (e.g. "Analyzed file X", "Implemented function Y", "Running tests").agenfk update <itemId> --status REVIEW to enter REVIEW, then agenfk gatekeeper --item-id <itemId> to get exit criteria, then agenfk verify <itemId> --evidence "<text>" to advance through intermediate steps and reach DONE./agenfk-deep)task tool at every phase transition.task tool.agenfk gatekeeper --intent "<intent>" --item-id <id> to authorize changes against the specific task.IN_PROGRESS.agenfk update <id> --status REVIEW.agenfk CLI (MCP optional)Use the agenfk CLI for all workflow state operations. It is the default and fully
enforced by the server. Each workflow tool name in this skill maps to a CLI command:
| Tool name (this skill) | agenfk CLI command |
|---|---|
workflow_gatekeeper(intent, itemId?) | agenfk gatekeeper --intent "<intent>" [--item-id <id>] [--role <planning|coding|review|testing|closing>] [--json] |
list_projects() | agenfk list-projects --json |
| (get current project id) | agenfk current-project [--json] — prints the current project id resolved from the nearest .agenfk/project.json (walking up from the cwd); --json adds the project name/description from the server when reachable. No MCP equivalent — CLI only. |
create_project(name) | agenfk create-project "<name>" [-d/--description <desc>] |
update_project(id, {...}) | agenfk update-project <id> [--name <name>][--description <text>][--verify-command <cmd>] |
list_items(projectId, ...) | agenfk list [--project <id>] [-t/--type <type>] [-s/--status <status>] [--active] [--all] [--json] (--active = only items in an active working step; flow-aware) |
get_item(id) | agenfk get <id> --json |
create_item(projectId, type, title) | agenfk create <TYPE> "<title>" --project <id> [-d/--description <desc>] [-p/--parent <id>] |
update_item(id, {status}) | agenfk update <id> [--status <name>][--title <t>][--description <d>][--type <T>] (status is backward/rollback only) |
validate_progress(id, evidence, command?) | agenfk verify <id> --evidence "<text>" ["<command>"] |
add_comment(id, text) | agenfk comment <id> "<text>" [--author <name>] |
add_context(id, path) | agenfk add-context <id> --path <path> [--description <text>][--content <text>] |
move_item(id, target) / delete_item(id) | agenfk move <id> <targetProjectId> / agenfk delete <id> |
pause_work(...) / resume_work(id) | agenfk pause-work <id> --summary "<s>" --resume-instructions "<r>" [--files a,b][--git-diff <diff>] / agenfk resume-work <id> |
get_flow(projectId) / list_flows() | agenfk flow show [id] [--project <id>] [--json] (bare flow show auto-detects the current project's active flow; --project is optional) / agenfk flow list [--json] |
use_flow(id, projectId) / delete_flow(id) | agenfk flow use <id> [--project <id>] / agenfk flow delete <id> [-y/--yes] |
log_test_result(...) | agenfk log-test <id> --command "..." --output "..." --status PASSED|FAILED |
query_token_events(...) | agenfk tokens [--item <id>][--project <id>][--client <name>][--since <ts>][--until <ts>][--limit <n>][--json] |
register_pr(...) / update_pr_sizing(...) | agenfk pr-register --item <id> --number <n> --repo <r> --epic <n> --story <n> --task <n> --bug <n> --model <id> --harness <name> / agenfk pr-resize --number <n> --repo <r> --epic <n> --story <n> --task <n> --bug <n> --model <id> --harness <name> (--model and --harness are REQUIRED on both) |
analyze_request(req) | agenfk analyze "<request>" |
Read output: append --json to any read command (list, get, list-projects,
current-project, flow show, tokens, …) for machine-readable output you can parse
into your context.
NEVER use these bypass routes (the agenfk-mcp-enforcer hook blocks them where hooks are supported):
| Forbidden | Use instead |
|---|---|
Reading .agenfk/db.sqlite or .agenfk/db.json directly (via Bash or Read tool) | agenfk list --json · agenfk get <id> --json |
curl / wget to http://localhost:3000 (direct REST API) | agenfk list · agenfk create · agenfk update · agenfk verify |
MCP is opt-in (--with-mcp). When MCP tools are present, they are equivalent to the CLI commands above.
Initialization
git status — if the working tree has uncommitted or modified files, STOP and ask the user how to proceed (stash, commit, or discard). Never start new work on a dirty working tree.git branch --show-current — if NOT on main (or master) and the current branch does not belong to an item you're about to resume, run git checkout main (or master).git pull to ensure you have the latest upstream changes.agenfk current-project to resolve the current project id (it finds the nearest .agenfk/project.json, walking up from the cwd). If it prints an id, that is the active projectId — use it for every command that takes --project <id>.agenfk list-projects --json to see existing projects.agenfk create-project "<name>")..agenfk/project.json with the { "projectId": "..." }.agenfk flow show --project <projectId> --json to discover the active workflow flow. The agenfk gatekeeper response also includes activeFlow. Use the flow's step name values as the valid statuses for this project — do NOT assume the default TODO → IN_PROGRESS → REVIEW → TEST → DONE pipeline is active. The project may have a custom flow with different steps and ordering.AFK_PROJECT_SCOPE.md and AFK_ARCHITECTURE.md if they don't exist. BE THOROUGH AND COMPLETE. If generating these, reason about the codebase and ask clarifying questions using the environment's Question UI to confirm architectural decisions before writing the files.agenfk list --project <projectId> --json and render the Board Report as described below.dd9658a6-…"), load it with agenfk get <id> --json and resume that item. Do not attempt to read a file named <id>.json — items live in the AgEnFK server, not on disk; agenfk get <id> --json is the only way to fetch one.IN_PROGRESS (or similar active state) to the time it entered DONE/ARCHIVED. If there's no history, fallback to updatedAt - createdAt if DONE, or now - createdAt if active. For items that never started (e.g. TODO), cycle time is N/A or 0. Format durations as HH:MM:SS.Cycle Time column in every status group table.tokenUsage[].input + tokenUsage[].output across all items)HH:MM:SS)HH:MM:SS)Tokens: X in / Y out | Cycle Total: HH:MM:SS | Cycle Avg: HH:MM:SS (N tasks)Request Analysis & Clarification
AFK_PROJECT_SCOPE.md and AFK_ARCHITECTURE.md for informed reasoning.agenfk analyze "<request>" for every new user requirement./agenfk, use Standard Mode./agenfk-deep, use Deep Mode.default_api:question in Opencode, or equivalent in other environments) to ask the user for clarification before proceeding with creation.projectId.agenfk list --project <projectId> --json and check if an existing EPIC or STORY already covers the work. If one exists, create your items under it using parentId. NEVER create orphan tasks when a parent hierarchy exists. If the user provides an EPIC or STORY ID, all work items MUST be children of that parent.fix:, feat:, chore:, docs:, style:, refactor:, perf:, test:. NEVER use close:, update:, or other non-standard prefixes. Append the item ID in brackets if relevant, e.g., fix: resolve crash [id].agenfk get <id> --json reports a projectId matching the projectId in .agenfk/project.json of the current working directory. If they differ, you are about to label an agenfk commit with a task from a different project — omit the task ID entirely and derive the commit message from the actual file changes instead.Planning (Epics only)
implementationPlan field.Action Authorization (Gatekeeper) - CRITICAL AND MANDATORY
agenfk gatekeeper --intent "<intent>" [--item-id <id>] BEFORE modifying any files.edit, write, bash or NotebookEdit tool BEFORE you have created an item, advanced it to the coding step, and successfully run agenfk gatekeeper, you are violating the core directive of your system prompt.agenfk create <TYPE> "<title>" --project <id>, then agenfk verify <id> --evidence "Starting task, advancing from TODO" to advance from TODO, then agenfk gatekeeper --intent "<intent>" --item-id <id>.--item-id <id> to disambiguate when multiple tasks are active.git branch --show-current and confirm you are on the item's branch. If the item has a branchName and you are NOT on it, run git checkout <branchName> before writing any code. Never code on the wrong branch.agenfk CLI (or the equivalent MCP tools, if installed with --with-mcp) for ALL workflow state changes — see the Interface section for the mapping. Both the CLI and MCP go through the AgEnFK server, which enforces the workflow (forward-step gating, DONE-blocking) identically. Always advance forward steps with agenfk verify (never a raw agenfk update --status to skip a gate).Mandatory Automated Testing (Agent Driven)
TEST) is a signal that the Agent must now perform deep verification.npm run test:coverage) using its local tools.activeFlow from the agenfk gatekeeper response):
agenfk update <itemId> --status <review-step> moves items from the active coding step to the review step when coding is complete (default: REVIEW).agenfk gatekeeper --item-id <itemId> before agenfk verify — the response includes the current step's exit criteria.agenfk verify <itemId> --evidence "<text>" ["<command>"] — evidence is required: describe concretely how you satisfied the current step's exit criteria. It is logged as a tagged comment (audit trail) and serves as your mandatory confirmation before the step advances. Runs command (or project.verifyCommand if omitted) and advances to the next flow step on success.agenfk verify <itemId> --evidence "<how you satisfied this step>" (no command) for the final step — this uses the project's verifyCommand and moves to DONE. If it returns NO_VERIFY_COMMAND, the agent auto-detects the project stack from config files (e.g. package.json, Cargo.toml, go.mod, *.csproj), sets the command via agenfk update-project <id> --verify-command "<cmd>", and retries. Do NOT use agenfk update <id> --status DONE — the server blocks direct DONE transitions.agenfk verify call validates the code for all siblings. After one passes, move remaining siblings to the same step via agenfk update <id> --status <step>, then run agenfk verify <id> --evidence "<text>" on each to reach DONE.Final Verification (Validate Tool)
agenfk gatekeeper --item-id <itemId> to get the current step's exit criteria, then agenfk verify <itemId> --evidence "<text>" ["<command>"] to gate the transition to the next step.verifyCommand (set via agenfk update-project <id> --verify-command "<cmd>") is used automatically when no command is provided. Agents cannot override or bypass it.agenfk update <id> --status <step>.agenfk verify <itemId> --evidence "<concrete description of how exit criteria were met>" ["<command>"] — logs evidence as a tagged comment, runs the command, and advances to the next flow step.Measurement & Tracking
agenfk comment <itemId> "<content>" for EVERY significant step performed during implementation (e.g. "Modified core types", "Updated UI components", "Ran tests"). This ensures the human user can follow the agent's work in real-time on the Kanban board.activeFlow in the agenfk gatekeeper response):
agenfk update <id> --status <step>, self-review, then run agenfk verify <id> --evidence "<evidence>" for each intermediate step until DONE.
agenfk verify already advanced past a step, move remaining siblings to that step via agenfk update <id> --status <step>. Then run agenfk verify <id> --evidence "<evidence>" on each — subsequent calls pass immediately via sibling propagation.agenfk update <id> --status DONE — the server rejects direct DONE transitions. Always use agenfk verify <id> --evidence "<evidence>" to close an item.DONE, the Agent MUST ask the user what they would like to do next, providing exactly these three options:
/clear followed by /agenfk).IN_PROGRESS).Use this skill whenever you are performing software engineering tasks to ensure compliance with the AgenFK Engineering Framework.
agenfk CLI)agenfk current-project [--json]: Print the current project id (resolved from the nearest .agenfk/project.json). Use this whenever a command needs --project <id> or the "active projectId".agenfk list-projects --json: List all existing projects.agenfk create-project "<name>": Create a new project.agenfk create <TYPE> "<title>" --project <id>: Create a new workflow item.agenfk update <id> --status <name>: Update status (backward/rollback only — use agenfk verify for forward transitions).agenfk list --project <id> --json: Query the backlog.agenfk get <id> --json: Get full details.agenfk add-context <id> --path <path>: Attach relevant file paths.agenfk analyze "<request>": Categorization strategy.agenfk gatekeeper --intent "<intent>" [--item-id <id>]: Pre-flight authorization.agenfk flow show [--project <id>] --json: Loads the full active flow with all steps and exit criteria — run at session start to understand your complete workflow contract. --project is optional: bare agenfk flow show inside an initialized project auto-detects the current project and shows its active flow.agenfk verify <id> --evidence "<text>" ["<command>"]: Step-completion gate — evidence (how you satisfied the exit criteria, logged as a tagged comment) is required; the command is optional. Advances to next step on success.agenfk pause-work <id> --summary "<s>" --resume-instructions "<r>": Save context snapshot and pause item.agenfk resume-work <id>: Restore context and resume paused item.Token usage is captured automatically by the server-side ingestion worker — agents do not need to (and cannot) self-report tokens.
If you installed with --with-mcp, each command maps 1:1 to an mcp__agenfk__* tool (e.g. agenfk verify ↔ validate_progress, agenfk gatekeeper ↔ workflow_gatekeeper) — they are interchangeable.