"Use when asked to create or refine a development task, turn a short request into an implementation-ready Task Markdown document, or write a task/ticket/spec that another human or AI agent can implement without the original conversation. Triggers on 'create a task for', 'write a task/ticket for', 'draft a spec for X', 'turn this into a task', or a bare feature/bug/performance/research request that needs Background, Scope, Repository Context and Acceptance Criteria before anyone starts coding. Works across Claude Code, Codex and other repository-aware agents. Also covers authoring a canonical worked example for a skill's examples/ directory (eight archetypes, e.g. Contrast, Test-First, Postmortem), and designing or budgeting an LLM-call prompt (few-shot/chain-of-thought, structured-output contracts, token budgets, model tiers, agentic loops with ReAct, self-healing feedback and max-iteration guardrails). Not for implementing a change or scoping it live in the current conversation (use agile-development)."
Resources
9Install
npx skillscat add hchoutw/agentic-ai-skills/task-authoring Install via the SkillsCat registry.
Task Authoring
Turn a short natural-language request into an implementation-ready Task
Markdown document by reading the applicable authoring reference, inspecting
the target repository, and classifying every claim as Confirmed, Inferred, or
Unresolved - never fabricating a project-specific detail to make the task
look complete.
Core Workflow
- Understand the user intent. Extract the primary objective, the
requested feature/analysis/fix/investigation, explicit constraints, the
requested output format, and known domain context. Do not expand the task
yet. - Identify the relevant authoring reference. Locate the authoring
reference that best matches the request - this skill's own
templates/task-template.md and
references/ first, and any repository-defined authoring
instructions the target repo itself carries (aCONTRIBUTING.md, an
existing task-template file, a sibling skill's own conventions). Prefer
repository-defined instructions over this skill's default style. If
multiple references are relevant, use the smallest sufficient set. - Read the authoring reference before drafting. Extract the required
sections, the expected level of detail, formatting conventions, the
acceptance-criteria style, required technical context, and any examples of
strong and weak tasks it carries. Do not assume the authoring format from
memory when a reference is available - see
templates/task-template.md and
references/acceptance-criteria.md. - Inspect the target repository. Before introducing any project-specific
implementation detail, look at READMEs, source code, configuration files,
tests, CI configuration, documentation, existing tasks, directory
structure, and naming conventions. Prefer repository facts over generic
domain assumptions - including the fact that a directory, dataset, or
pipeline you expected to exist does not. - Build an evidence model. Classify every piece of information in the
draft into exactly one of:- Confirmed - directly supported by user input, repository content, or
an authoring reference. - Inferred - a reasonable technical conclusion derived from confirmed
information. Inferences must never be written as if they were
repository facts. - Unresolved - cannot be determined from available context (dataset
version, production campaign, performance target, reference baseline,
required hardware, expected threshold, and similar). Write these asTBD,Open Question, orRequires Confirmation- never fabricate a
value merely to make the task appear complete.
- Confirmed - directly supported by user input, repository content, or
Generic Agent Instruction
This 13-point instruction is the reusable contract every supported agent
follows, regardless of vendor. When asked to create or refine an engineering
task:
- Read the relevant task-authoring skill or reference before drafting.
- Inspect the target repository for relevant implementation details.
- Prefer repository facts over generic assumptions.
- Distinguish confirmed information from inference.
- Do not invent project-specific details.
- Mark unresolved information as TBD, Open Question, or Requires
Confirmation. - Follow the repository's task-authoring structure and conventions.
- Define clear scope and explicit non-goals.
- Include concrete deliverables.
- Write measurable and verifiable acceptance criteria.
- Include validation instructions where appropriate.
- Ensure the task contains enough context for another human or AI agent to
implement it independently. - Validate the final task against the authoring reference before writing
it - see
references/task-quality-checklist.md.
When to Load References
- Output contract for the generated document (exact section list, order,
one-line placeholder guidance) ->
templates/task-template.md - Acceptance-criteria style (what makes a criterion verifiable vs. vague)
-> references/acceptance-criteria.md - Final quality gate before writing the task ->
references/task-quality-checklist.md - How a specific agent environment discovers or loads this skill (Claude
Code, Codex, Antigravity, or an unlisted generic agent) ->
references/adapters/ - discovery notes only, they do
not restate any rule above. - Worked examples per task category (feature, bug, performance, research)
-> examples/ - Authoring a canonical worked example in any of eight archetypes -
Contrast (Weak vs. Expert), Execution Trajectory, Gated Pipeline,
Decision-Tree, Interactive Elicitation ("Grill-Me"), Adversarial Audit /
Red-Teaming, Test-First / Red-to-Green, or Incident Postmortem & RCA - for
this or another skill'sexamples/directory ->
references/example-authoring.md - Designing or budgeting a prompt for an LLM call - agent skills, prompt
templates, structured-output contracts, model-tier choice, token budgets ->
references/prompt-engineering-and-token-optimization.md - Authoring a task for an agentic, autonomous, or iterative loop - an
agent that calls tools repeatedly, a self-correcting pipeline, a
retry-until-valid process - closed-loop pattern (ReAct, Plan-and-Solve),
self-healing error feedback, and mandatory guardrails (termination
condition, maximum-iteration limit, early stopping) ->
references/loop-engineering.md
Decision Rules
- Prefer repository evidence over assumptions, and prefer an explicit "not
found" over silence when an expected file or module does not exist. - Never represent an Inferred conclusion as a Confirmed repository fact.
- Never fabricate Unresolved information merely to make Open Questions look
shorter or the task look more complete. - Only cite repository paths that were actually verified to exist.
- Keep agent-specific adapters discovery-only; the Core Workflow and the
template contract live in exactly one place each. - When the work under authoring is an agentic, autonomous, or iterative loop,
name its closed-loop pattern in Technical Approach and fix its termination
condition, maximum-iteration limit, and early-stopping condition in
Acceptance Criteria - see
references/loop-engineering.md. Never
leave an iteration ceiling unbounded or invent one the requester never
gave; mark it Open Question / TBD instead.
Caveats
- This skill decides how to write the task, not how to implement it -
pair it withagile-development(or a domain skill) once the generated
task is handed off for implementation. - Building a new LLM, a vendor-specific API integration, or a full autonomous
development agent is out of scope; so is replacing human review for
ambiguous product or domain decisions. Authoring the task specification for
such a loop - its pattern, error handling, and guardrails - is in scope;
see references/loop-engineering.md. - If the user explicitly supplies their own task template or format, follow
it instead of templates/task-template.md -
user instructions take precedence over this skill's default structure.
Example Prompts This Skill Handles Well
- "Create a task for RICH reconstruction performance analysis."
- "Write a task for adding a CSV export endpoint for admins."
- "Turn this bug report into an implementation-ready task doc."
- "Draft a research task investigating whether we can deduplicate the C++
design guidelines shared between two skills." - "Generate a canonical
examples/entry for thehep-analysisskill contrasting a
weak vs. expert systematics writeup." (Contrast archetype) - "Walk the cart-total discount-code bug report through a full triage-to-verified-fix
trajectory foragile-development/examples/." (Execution Trajectory archetype) - "Author a gated-pipeline example showing how to draft and red-team an RFC for a
feature-flagged rollout." (Gated Pipeline archetype) - "Author a decision-tree example for triaging an ambiguous production incident page."
(Decision-Tree archetype) - "Generate a Grill-Me elicitation example for
hep-analysisstarting from
'can you check if there's a signal in this dataset?'" (Elicitation archetype) - "Red-team this 'SOTA accuracy' training writeup for leakage or a cherry-picked
seed." (Adversarial Audit archetype) - "Write a test-first example for a DataLoader throughput invariant, red test
through green with metrics." (Test-First archetype) - "Author a postmortem example for a distributed training run that diverged at
hour 30." (Postmortem archetype) - "Design a prompt template for a classification pipeline and give me a token budget."
- "Create a task for an autonomous log-triage agent that retries against a
flaky search API until it finds the root cause or hits an iteration limit."