task-init

task-init is a skill for Claude Code, Codex from Mozurok/fhorja.dev. It costs 209 tokens per session (8,935 once invoked), scanned A, original, MIT.

A workflow for creating the standard folder and planning files for a new engineering task, including its current state, source of truth, decisions, and implementation plan.

In plain words
What is it for?
Use it to start a task with the required project memory files and, when relevant, document multiple repositories.
Why use it?
It gives new work a consistent record that can be resumed and reviewed later.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mozurok/fhorja.dev/task-init
Any agent
npx skills add Mozurok/fhorja.dev --skill task-init
Clone the repo
git clone --depth 1 https://github.com/Mozurok/fhorja.dev

Made for: Claude Code, Codex.

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/skills/mozurok/fhorja.dev/task-init.svg)](https://agentmods.dev/skills/mozurok/fhorja.dev/task-init)
Your own site
<a href="https://agentmods.dev/skills/mozurok/fhorja.dev/task-init"><img src="https://agentmods.dev/badge/skills/mozurok/fhorja.dev/task-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00209 $0.08935
Opus 5 $0.00105 $0.04467
Sonnet 5 $0.00042 $0.01787
Haiku 4.5 $0.00021 $0.00894

Measured 2d ago against content hash c113c984c489, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

task-init scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/task-init/SKILL.md · 361 lines

How it starts

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

Output contract, in brief. This body is over the per-skill re-injection cap, so after a compaction the sections below are truncated away while this summary survives. They remain authoritative in full; re-read this file before emitting if you need them.

  • Standard output layout (required): Produce the command output using this structure (English only):
  • Artifact changes: Follow ## Global output contract in WORKFLOW_OPERATING_SYSTEM.md for APPLIED / PROPOSED / SKIP rules.
  • Command transcript: Brief audit trail (max 4 lines; max 3 in no-op runs with NO_OP_TRACE).
  • Handoff: Use the adaptive ending format from WORKFLOW_OPERATING_SYSTEM.md ## Global output contract (Mode A compact or Mode B full per...
  • Definition of done (command output): All resolved paths are explicit (project + task folder) and naming rules are satisfied.

Act as a senior/staff engineering workflow state initializer.

Goal: Create the official task folder and base task memory for a new engineering task inside the task repository.

This command is mandatory at the start of every new task.

Mandatory context bootstrap (before any output):

  • Read these sections in WORKFLOW_OPERATING_SYSTEM.md 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: ## Required task files, ## Optional task files, ## TASK_STATE policy
    • 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 (objective, stack, planned repositories, constraints, non-goals)
    • projects/<client>__<project>/REFERENCES.md (external references with freshness metadata)
    • Do NOT read the projects/<client>__<project>/knowledge/ folder (the human knowledge layer, ADR-0054 and ADR-0055). It is never auto-loaded at task-init; its content reaches the AI only when a human pastes an excerpt into the task prompt. This is distinct from LEARNINGS.md, which task-init does scan (ADR-0017 consume side below).
    • When either file is missing, treat the project as not yet bootstrapped and warn the user (see Operating rules); do not block the task.
  • Read user-level memory when present:
    • /USER_MEMORY.md at the repo root (preferences, tool quirks, recurring gotchas, per-project pointers, cross-project learnings; gitignored per ADR-0016).
    • When absent, proceed silently; no warning. Bootstrap is the user's responsibility (cp templates/USER_MEMORY.template.md USER_MEMORY.md).
    • Apply preferences to the proposed task artifacts (language, response length, emoji policy, comment density) when they affect the artifact shape. Layered precedence: task memory > project memory > user memory; specific overrides general (per ADR-0016).
  • Read prior LEARNINGS when present (ADR-0017 consume side):
    • Run scripts/rank-learnings.sh "<task keywords or objective>" <project-path> to scan projects/<client>__<project>/active/*/LEARNINGS.md and the most recently archived tasks under archive/, ranking entries by recency plus tag and keyword overlap (ADR-0071); also read the cross-project learnings in /USER_MEMORY.md.
    • Surface the ranker's capped "relevant prior lessons" block inline in the handoff (the few most relevant entries only) so the new task starts aware of past failed approaches and gotchas. Relevance-filter; do not dump every entry.
    • Read-only: never compact, prune, or rewrite any LEARNINGS.md (per ADR-0017 item 6). When nothing is relevant, say nothing.
  • Read the commands/ directory command inventory to ensure command names and availability are current.
  • Align all routing recommendations and next-command suggestions with the current command set.
  • If WORKFLOW_OPERATING_SYSTEM.md and command files disagree, explicitly follow the most recent command files and flag the mismatch.
  • Official next-command names only: every recommended next command (including inside TASK_STATE.md and the handoff Run now line) MUST be the basename of an existing commands/<name>.md file in this workflow repository. Never invent names (invalid: task-plan, plan, execute-task). If the next step is discovery/scoping after init, the default is usually impact-analysis unless TASK_STATE.md already proves discovery is unnecessary.

Read the full file on GitHub · 361 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. 2d ago First seen · 361 lines · 209 tokens per session scan A c113c984c489

Subscribe to this mod's changes

task-init is a skill published in the GitHub repository Mozurok/fhorja.dev (6 stars, last pushed 20d ago), licensed MIT. It adds 209 tokens to every session and 8,935 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.