agentleFS
michelvemichelve/hugin-v0/skills/create-tasks/SKILL.md

create-tasks

Skill0 starsChanged 8 months agoMITView on GitHub

Creates well-formed tasks following a template that engineers can implement. Triggers on: 'create tasks', 'define work items', 'break this down', creating tasks from PRD, converting requirements into actionable tasks, feature breakdown, sprint planning.

  • Reads credentials

6 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All tasks are stored in .tasks/ with the following lifecycle directories:

    line 24
  2. Very specific:

    When creating tasks, use .tasks/_template.md as the base and save them to .tasks/backlog/.

    line 37
  3. Distinctive:

    Every task must provide:

    line 41
  4. Distinctive:

    The Examples (🟢) ARE your acceptance criteria: Write them in Given-When-Then format:

    line 66
  5. Distinctive:

    If ANY of these are true, STOP and split:

    line 95
  6. Distinctive:

    When you need to split, use these techniques:

    line 106
  7. Distinctive:

    Every task must be a vertical slice—cutting through all layers needed for ONE specific thing:

    line 118
  8. Distinctive:

    If you catch yourself writing one of these, STOP and apply SPIDR.

    line 155
  9. Distinctive:

    Every task MUST pass INVEST before creation:

    line 159
  10. Distinctive:

    Max 1 day of work: - if longer, split it

    line 172
  11. Distinctive:

    Must be demoable: - when done, you can show it working

    line 174
  12. Distinctive:

    Name it: - Write a specific, action-oriented title.

    line 226
  13. Distinctive:

    Validate size: - Must pass INVEST. Max 1 day.

    line 227
  14. Distinctive:

    Before finalizing any task, verify ALL of these:

    line 236
  15. Distinctive:

    Use the session ID to trace the full lifecycle of a task from requirements to completion.

    line 265

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Current Project Context

!`cat .tasks/_template.md 2>/dev/null || echo 'No task template found at .tasks/_template.md'`

Create Tasks

Creates well-formed tasks that provide large amounts of contexts so that engineers that weren't in conversations can implement the task without any prior knowledge and without asking questions.

Tasks should be created using the tools and documentation conventions in the project the skills is being applied to. If the conventions are not clear, ask the user to clarify and then document them.

Task Storage

All tasks are stored in .tasks/ with the following lifecycle directories:

DirectoryPurpose
.tasks/backlog/Tasks not yet started
.tasks/in-progress/Tasks currently being worked on
.tasks/done/Completed tasks (passed task-check)
.tasks/cancelled/Cancelled tasks (with reason)

File naming: NNNN-short-title.md - zero-padded number, lowercase, hyphenated.

To find the next number, check across all subdirectories for the highest NNNN prefix and increment by 1.

When creating tasks, use .tasks/_template.md as the base and save them to .tasks/backlog/.

What Engineers Need

Every task must provide:

  • What they're building (deliverable)
  • Why it matters (context)
  • Key decisions and principles they must follow
  • Acceptance criteria
  • Dependencies
  • Related code/patterns
  • How to verify it works

Before Creating Tasks: Slice First

🚨 NEVER create a task without validating its size first. A PRD deliverable is NOT automatically a task—it may be an epic that needs splitting.

Example Mapping Discovery

🚨 Never copy PRD bullets verbatim. Use Example Mapping to transform them into executable specifications.

CardWhat You Do
🟡 StoryState the deliverable in one specific sentence
🔵 RulesList every business rule/constraint (3-4 max per task)
🟢 ExamplesFor EACH rule: happy path + edge cases + error cases
🔴 QuestionsSurface unknowns → resolve or spike first

The Examples (🟢) ARE your acceptance criteria. Write them in Given-When-Then format:

Given [context/precondition]
When [action/trigger]
Then [expected outcome]

Edge case checklist - for each rule, systematically consider:

CategoryCheck For
InputEmpty, null, whitespace, boundaries, invalid format, special chars, unicode, too long
StateConcurrent updates, race conditions, invalid sequences, already exists, doesn't exist
ErrorsNetwork failure, timeout, partial failure, invalid permissions, quota exceeded

Example: PRD says "User can search products"

Rules identified: (1) Search by title, (2) Pagination, (3) Empty state

For Rule 1 alone, edge case thinking yields:

  • Given products exist → When search → Then results (happy path)
  • Given no matches → When search → Then empty set
  • Given empty search term → When submit → Then validation error OR all products? (🔴 Question!)
  • Given special chars in search → When search → Then handled safely

Splitting Signals (Task Too Big)

If ANY of these are true, STOP and split:

  • ❌ Can't describe in a specific, action-oriented title
  • ❌ Would take more than 1 day
  • ❌ Title requires "and" or lists multiple things
  • ❌ Has multiple clusters of acceptance criteria
  • ❌ Cuts horizontally (all DB, then all API, then all UI)
  • ❌ PRD calls it "full implementation" or "complete system"

SPIDR Splitting Techniques

When you need to split, use these techniques:

TechniqueSplit ByExample
PathsDifferent user flows"Pay with card" vs "Pay with PayPal"
InterfacesDifferent UIs/platforms"Desktop search" vs "Mobile search"
DataDifferent data types"Upload images" vs "Upload videos"
RulesDifferent business rules"Basic validation" vs "Premium validation"
SpikesUnknown areas"Research payment APIs" before "Implement payments"

Vertical Slices Only

Every task must be a vertical slice—cutting through all layers needed for ONE specific thing:

✅ VERTICAL (correct):
"Add search by title" → touches UI + API + DB for ONE search type

❌ HORIZONTAL (wrong):
"Build search UI" → "Build search API" → "Build search DB"

Task Naming

Formula

[Action verb] [specific object] [outcome/constraint]

Good Names

  • "Add price range filter to product search"
  • "Implement POST /api/users endpoint with email validation"
  • "Display product recommendations on home page"
  • "Enable CSV export for transaction history"
  • "Validate required fields on checkout form"

Rejected Patterns

🚨 NEVER use these—they signal an epic, not a task:

PatternWhy It's Wrong
"Full implementation of X"Epic masquerading as task
"Build the X system"Too vague, no specific deliverable
"Complete X feature"Undefined scope
"Implement X" (alone)Missing specificity
"X and Y"Two tasks combined
"Set up X infrastructure"Horizontal slice

If you catch yourself writing one of these, STOP and apply SPIDR.

Task Size Validation (INVEST)

Every task MUST pass INVEST before creation:

CriterionQuestionFail = Split
IndependentDoes it deliver value alone?Depends on other incomplete tasks
NegotiableCan scope be discussed?Rigid, all-or-nothing
ValuableDoes user/stakeholder see benefit?Only technical benefit
EstimableCan you size it confidently?"Uh... maybe 3 days?"
SmallFits in 1 day?More than 1 day
TestableHas concrete acceptance criteria?Vague or missing criteria

Hard Limits

  • Max 1 day of work - if longer, split it
  • Must be vertical - touches all layers for ONE thing
  • Must be demoable - when done, you can show it working

Task Template

See .tasks/_template.md for the full template. Key sections:

---
status: backlog
created: YYYY-MM-DD
updated: YYYY-MM-DD
---

# NNNN-short-title

## Deliverable

[What user/stakeholder sees when this is done]

## Context and Motivation

[WHY this matters - PRD path, bug report URL, conversation context]

## Key Decisions

- [Decision/Principle] - [rationale]

## Acceptance Criteria

- [ ] Given [context], when [action], then [outcome]

## Out of Scope

[What this task does NOT cover]

## Dependencies

- [Dependency] - [why needed]

## Related Code

- `path/to/file` - [what pattern to follow]

## Verification

[Commands/tests that prove it works]

Process

  1. Slice first - Apply Example Mapping. If task has >3-4 rules or fails splitting signals, use SPIDR to break it down.
  2. Discover acceptance criteria - For each rule: generate happy path, edge cases, error cases using the checklist. Write as Given-When-Then. Surface questions.
  3. Name it - Write a specific, action-oriented title. If you can't, the task isn't clear enough.
  4. Validate size - Must pass INVEST. Max 1 day. Must be vertical slice.
  5. Gather context (from PRD, conversation, bug report, etc.)
  6. Identify key decisions that affect implementation
  7. Find related code/patterns in the codebase
  8. Specify verification commands
  9. Output task using template

Checkpoint

Before finalizing any task, verify ALL of these:

CheckQuestionIf No
SizeIs this ≤1 day of work?Split using SPIDR
NameIs the title specific and action-oriented?Rewrite using formula
VerticalDoes it cut through all layers for ONE thing?Restructure as vertical slice
INVESTDoes it pass all 6 criteria?Fix the failing criterion
ContextCan an engineer implement without asking questions?Add what's missing

🚨 If the PRD says "full implementation" or similar, you MUST split it. Creating such a task is a critical failure.

Session Tracking

This skill uses ${CLAUDE_SESSION_ID} to track task creation sessions:

// Each task creation is logged with session context
const sessionId = process.env.CLAUDE_SESSION_ID;
console.log(`[${sessionId}] Created task: ${taskNumber}-${taskTitle}.md`);

This allows correlation between:

  • The conversation or PRD that generated the task
  • The task file created in .tasks/backlog/
  • Later implementation work when the task moves to in-progress/ and done/
  • Task verification via task-check agent

Use the session ID to trace the full lifecycle of a task from requirements to completion.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.