task-init

task-init is a command for Claude Code from Mozurok/fhorja.dev. It costs 142 tokens per session (7,391 once invoked), scanned C, original, MIT.

A task-initialization command that creates the standard folder and planning files for a new engineering task.

In plain words
What is it for?
Use it when starting a new task in a project that follows this documented task workflow.
Why use it?
It gives the task a shared place for its requirements, decisions, implementation plan, and current state from the beginning.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; reads ~/.codex paths; mentions Codex.

Good fit Use it when starting a new task in a project that follows this documented task workflow.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mozurok/fhorja.dev/task-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Mozurok/fhorja.dev

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for task-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init/github.svg)](https://agentmods.dev/commands/mozurok/fhorja.dev/task-init)
Your own site
<a href="https://agentmods.dev/commands/mozurok/fhorja.dev/task-init"><img src="https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for task-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/mozurok/fhorja.dev/task-init"><img src="https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,391 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00142 $0.07391
Opus 5.5 $0.00057 $0.02956
Sonnet 5.5 $0.00028 $0.01478
Haiku 4.5 $0.00014 $0.00739

Measured 1mo ago against content hash 27b3bec15f65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

task-init scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- shared:projects-ignore -->
commands/task-init.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

task-init

Act as a senior/staff engineering workflow state initializer.

Goal: create the official task folder and base task memory for a new engineering task. Mandatory at the start of every new task.

Mandatory context bootstrap (before any output):

  • Resolving the spec and wos/<topic>.md: canonical repository FIRST. Otherwise use active-adapter docs: ~/.claude/workflow-docs (CLAUDE_WORKFLOW_DOCS_DIR), ~/.cursor/workflow-docs (WORKFLOW_DOCS_DIR; project .cursor/workflow-docs on project installs), ~/.codex/workflow-docs (CODEX_WORKFLOW_DOCS_DIR), or <kimi-home>/workflow-docs (KIMI_WORKFLOW_DOCS_DIR). Nonempty overrides win. Kimi home: KIMI_CODE_HOME, else existing ~/.kimi-code, else existing ~/.kimi, default ~/.kimi-code. Use one root for both paths; try other adapters if absent or unknown. Report resolved root, fallback to other adapters, or missing mandatory context in ### Command transcript. Installed snapshots refresh and prune retired topics only on sync.
  • Read these WORKFLOW_OPERATING_SYSTEM.md sections first: ## LLM execution contract, ## Editor mode policy, ## Global output contract (including Adaptive handoff and Mode selection rule), ## Cross-cutting workflow guardrails, ## Project-level memory.
  • Read additional sections only when needed:
    • naming/path setup: ## Naming conventions, ## Repository structure
    • artifact requirements: ## Task files, ## TASK_STATE policy (per-file contract: load wos/task-file-contracts.md)
    • phase/entry ambiguity: ## Command roles index (or wos/command-roles.md for full per-command detail), ## Entry points, ## Gate conditions
    • output sizing: ## Output depth policy
  • Read project-level memory when present:
    • projects/<client>__<project>/PROJECT_CHARTER.md
    • projects/<client>__<project>/REFERENCES.md: check that it EXISTS and link to it; do NOT read it here (ADR-0214).
    • Do NOT read projects/<client>__<project>/knowledge/ (ADR-0054, ADR-0055) or seed SOURCE_OF_TRUTH.md from it.
    • When either file is missing, treat the project as not yet bootstrapped and warn (see Operating rules); do not block the task.
  • Read /USER_MEMORY.md at the repo root when present (ADR-0016); when absent, proceed silently. Apply its preferences where they shape the artifacts, by the precedence in wos/project-level-memory.md ### Layered precedence.
  • Read prior LEARNINGS when present (ADR-0017 consume side):
    • Resolve scripts/rank-learnings.sh against the WORKFLOW ROOT, the same root the two-root preflight found for the spec and wos/ (the repository clone, or the installed docs directory, which ships this one script per ADR-0214), never against the task repository, which has no scripts/. When it is present in neither, say so in one ### Command transcript line (rank-learnings: not installed, prior LEARNINGS not consulted) instead of skipping the step silently.
    • Run it as rank-learnings.sh "<task keywords or objective>" <project-path> (ADR-0071) over projects/<client>__<project>/active/*/LEARNINGS.md and recent archive/ tasks; also read the cross-project learnings in /USER_MEMORY.md.
    • Surface the ranker's capped "relevant prior lessons" block in the handoff. Read-only: never compact, prune, or rewrite any LEARNINGS.md. When nothing is relevant, say nothing.
  • Read the clone command inventory when available; otherwise use installed Fhorja commands and skills.
  • Official next-command names only: every recommended next command (including inside TASK_STATE.md and the handoff Run now line) MUST be a registered canonical command name or an available installed Fhorja command or skill. Never invent names. The after-init route is set under Escalation assessment. Exception: Run now: none with Mode: N/A declares the chain ended with no honest next step (### Official command names (routing integrity), ADR-0126); never use it to end a chain that has a real next step.

Required inputs:

  • task description / objective
  • client and project identifier (or context to derive <client>__<project>)
  • task slug (or context to derive YYYY-MM-DD_<task-slug>)
  • intended editor mode (Ask for drafting only, Agent for actual file creation)
  • known source-of-truth pointers (codebase path, branch, tickets, docs), if any
  • optional: repositories, only when the task touches 2 or more coordinated product repositories. Each entry: identifier (lowercase, hyphenated, unique), local path, base branch, role tag (backend / frontend / shared / infra / mobile / other). Schema: spec ## Multi-repo support (v1).
  • optional: worktree isolation opt-in (task-workspace, ADR-0074, spec ### Per-task worktree isolation (opt-in, v1)).

Read the full file on GitHub · 257 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -59 lines · +72 tokens per session 27b3bec15f65
  2. 1mo ago Changed · +2 lines d879e260e7a0
  3. 2mo ago Changed · -20 lines bb45525ab6f8
  4. 2mo ago Changed · -6 lines scan A → C c585fe3ae989
  5. 2mo ago First seen · 340 lines · 70 tokens per session scan A 3005bbbba515

Subscribe to this mod's changes

task-init is a command published in the GitHub repository Mozurok/fhorja.dev (10 stars, last pushed 1mo ago), licensed MIT. It adds 142 tokens to every session and 7,391 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

task-init compared with commands from other repositories

task-init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
task-initMozurok/fhorja.devCommand101mo agoMITC142Claude Code
kiro-steering-customgotalab/cc-sddCommand3.8k1mo agoMITA0Claude Code
ijfw-executeFerroxLabs/ijfwCommand214todayMITA36Claude Code
ijfw-metricsFerroxLabs/ijfwCommand214todayMITA37Claude Code
specmanager-buildjoanseg/specmanagerCommand2713d agoMITB25Claude Code
alignaidemd-mcp/serverCommand42d agoMITA0Claude Code
tasksChappygo-OS/Atomic-SpecCommand1024d agoMITC21Claude Code