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.
npx agentmods add commands/mozurok/fhorja.dev/task-initgit clone --depth 1 https://github.com/Mozurok/fhorja.devWrote 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.
[](https://agentmods.dev/commands/mozurok/fhorja.dev/task-init)<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="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00070 | $0.08705 |
| Opus 5 | $0.00035 | $0.04352 |
| Sonnet 5 | $0.00014 | $0.01741 |
| Haiku 4.5 | $0.00007 | $0.00870 |
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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 340 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 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.mdfirst:## 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 rolesindex (orwos/command-roles.mdfor full per-command detail),## Entry points,## Gate conditions - output sizing:
## Output depth policy
- naming/path setup:
- 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 attask-init; its content reaches the AI only when a human pastes an excerpt into the task prompt. This is distinct fromLEARNINGS.md, whichtask-initdoes 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.mdat 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 scanprojects/<client>__<project>/active/*/LEARNINGS.mdand the most recently archived tasks underarchive/, 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.
- Run
- 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.mdand 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.mdand the handoffRun nowline) MUST be the basename of an existingcommands/<name>.mdfile 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 usuallyimpact-analysisunlessTASK_STATE.mdalready proves discovery is unnecessary.
Required inputs:
- new task description / objective from the user
- client and project identifier (or enough context to derive
<client>__<project>) - task slug (or enough context to derive
YYYY-MM-DD_<task-slug>) - intended editor mode (Ask for drafting only, or Agent for actual file creation in
my_work_tasks) - relevant source-of-truth pointers known so far (codebase path, branch, tickets, docs), if available
- optional: list of repositories for multi-repo tasks. Provide only when the task touches 2 or more product repositories that ship coordinated. Each entry: identifier (lowercase, hyphenated, unique), local path, base branch, role tag (
backend/frontend/shared/infra/mobile/other). See the spec## Multi-repo support (v1)for the schema. - optional: worktree isolation opt-in. Provide when the task should run on its own git worktree and branch so it does not collide with other active tasks on the same repository. Only meaningful on a git-backed project; ignored otherwise. Provisioning lives in
task-workspace, not here (ADR-0074). See the spec## Multi-repo support (v1)->### Per-task worktree isolation (opt-in, v1).
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.
- yesterday First seen · 340 lines · 70 tokens per session scan A 3005bbbba515
task-init is a command published in the GitHub repository Mozurok/fhorja.dev (6 stars, last pushed 20d ago), licensed MIT. It adds 70 tokens to every session and 8,705 once invoked, about $0.0003 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.
Other commands, from other repositories
constitution
根据交互输入或已提供原则创建或更新项目章程,并确保相关模板保持同步。.
cross-research
Two-phase multi-model research. Phase A fans codex+gemini in parallel (benchmarks + citations angles); Phase B synthesises via fresh Claude session. Usage: /cross-research [--with | list | compare].
kiro-steering-custom
Command "kiro-steering-custom" from gotalab/cc-sdd, covering kiro custom steering creation, workflow, available templates, steering principles and tool guidance.
memory-why
Show why a memory recall returned what it did -- BM25 vs vector vs hybrid provenance.
spec-requirements
Generate comprehensive requirements for a specification.
ijfw-metrics
Show IJFW token / cost / session metrics over a time window. Reads .ijfw/metrics/sessions.jsonl via the ijfwmetrics MCP tool.