agentleFS
felixgollnhuberfelixgollnhuber/dienstweg/.agents/skills/start-task/SKILL.md

start-task

Skill1 starsChanged 5 months agoMITView on GitHub

Prepare a Linear issue for implementation - worktree, a comprehensive plan written into the issue, and a ready-to-run /goal condition. Use when the user wants to start, begin, pick up, or work on an existing issue / ticket by its identifier (e.g. "start FAC-123"). Sets up only; implementation runs in the /goal loop afterwards.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. maotoumao/Cebian★ 161same name
    2. Krzysztof318/MailFathom★ 14same name
    3. josephneumann/claude-corps★ 4same name
    4. a-ghorbani/pocketpal-dev-team★ 2same name
    5. YUVARAJ-R-ai/my-claude-skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 5 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

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

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

    Read dienstweg.config.json at the repo root.

    line 12
  2. Very specific:

    Read dienstweg.local.md if it exists - its rules apply in addition to this skill.

    line 13
  3. Very specific:

    Use the Linear MCP tools (get_issue, save_issue, list_issues, ...

    line 15
  4. Very specific:

    Call get_issue with that identifier.

    line 20
  5. Very specific:

    If the issue does not exist or is already Done: STOP, ask the user.

    line 21
  6. Very specific:

    Check the parallelism labels (parallel-safe, single-writer:<area>) and log them briefly.

    line 22
  7. Very specific:

    If the description is empty or missing the template: create the skeleton from the issue description template (in the dienstweg block in …

    line 23
  8. Distinctive:

    does not exist: create it (below), then switch into it (cwd!).

    line 35
  9. Distinctive:

    Ask as many questions as needed to resolve ambiguities, one at a time.

    line 50
  10. Distinctive:

    Test strategy (unit / integration / manual)

    line 53
  11. Distinctive:

    Only when all essential questions are resolved: continue with step 5.

    line 56
  12. Distinctive:

    Do NOT write to Linear yet - compose the plan in memory now and persist it only after the user approves (step 8).

    line 57
  13. Very specific:

    If the issue touches a high-risk area (config.areas.highRisk), add to the constraints: smaller commits, intermediate verification after …

    line 109
  14. Very specific:

    If a single-writer:<area> label is active, add: no parallel edits to <area> hot files while another issue is In Progress.

    line 111
  15. Very specific:

    Wait for the user's /goal command.

    line 141
  16. Very specific:

    All description patches via save_issue with the complete description body: get_issue first, patch precisely, write back.

    line 151

“Common” is measured: kept by at least 6 in 10 of the 5 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
<!-- GENERATED by dienstweg v0.3.1 - DO NOT EDIT. Project values live in dienstweg.config.json, project-specific rules in dienstweg.local.md. Run `dienstweg update` to upgrade. -->

You are preparing the Linear issue the user named (an identifier like 123 or PREFIX-123) for implementation. Goal: a worktree + a comprehensive plan in the Linear issue description (section ## Plan), so that /goal can afterwards work through it without further questions.

Step 0 - Load the project config

  • Read dienstweg.config.json at the repo root. All config.* references below come from this file. Key values: config.tracker.issuePrefix, config.tracker.linearTeam, config.git.baseBranch, config.gates.build, config.areas.highRisk, config.areas.singleWriter, config.review.*, config.merge.auto, config.extraConstraints.
  • Read dienstweg.local.md if it exists - its rules apply in addition to this skill.
  • Respond to the user in config.language.
  • Use the Linear MCP tools (get_issue, save_issue, list_issues, ... - the tool prefix depends on the installed Linear MCP server).

Step 1 - Load the issue

  • Normalize the identifier to the format <issuePrefix>-XXX (e.g. 123 -> ABC-123 when the prefix is ABC).
  • Call get_issue with that identifier. Read: title, description (including the sections ## Plan, ## Acceptance Criteria, ## Definition of Done, ## Setup, ## Final Summary), labels, project, milestone, relations, state.
  • If the issue does not exist or is already Done: STOP, ask the user.
  • Check the parallelism labels (parallel-safe, single-writer:<area>) and log them briefly.
  • If the description is empty or missing the template: create the skeleton from the issue description template (in the dienstweg block in AGENTS.md), derive AC + DoD from the issue title, and present it to the user for approval before step 5.
  • Claim now (before planning, to close the single-writer race window): save_issue state="In Progress" assignee="me". If the issue is already In Progress and assigned to someone else, STOP and ask.

Step 2 - Ensure the worktree

  • Branch name: tasks/<issueprefix-lowercase>-XXX-<short-slug> (slug from the issue title, max 4-5 words, kebab-case, lowercase).
  • Worktree path: .codex/worktrees/tasks+<issueprefix-lowercase>-XXX-<slug> relative to the main repo (or the location the project defines in dienstweg.local.md).

First check via git worktree list whether a worktree for this issue already exists:

  • exists and cwd points at it: skip creation, run the setup command if the project has one (idempotent), continue with step 3.
  • exists and cwd points elsewhere: STOP, ask the user whether to use the existing worktree.
  • does not exist: create it (below), then switch into it (cwd!).

Creation (plain git; if the project defines a worktree helper script in dienstweg.local.md, use that instead - it is the single source of truth for setup):

git worktree add .codex/worktrees/tasks+<prefix>-XXX-<slug> -b tasks/<prefix>-XXX-<slug> <config.git.baseBranch>
cd .codex/worktrees/tasks+<prefix>-XXX-<slug> && <project setup, e.g. npm ci - skip if not applicable>

Step 3 - Destructive-setup decision (decide only, do NOT execute)

If the project defines a demo-data or seed command (in dienstweg.local.md): judge from the issue content + AC whether it is needed for manual verification. If needed, note it in the plan's Setup section as optional-before-manual-verification. Never execute it in start-task - it is destructive and the user decides. If the project defines no such command, note Demo data: not required in the plan.

Step 4 - Ask questions, then plan

  • Ask as many questions as needed to resolve ambiguities, one at a time. Two extra questions beat one silent assumption. Typical topics:
    • Scope boundaries: what belongs in this issue, what becomes a follow-up issue?
    • Which concrete files/components will be touched
    • Test strategy (unit / integration / manual)
    • Schema/format impact, rollback path
    • Dependencies on parallel issues (check first: list_issues state="In Progress" label="single-writer:<area>")
  • Only when all essential questions are resolved: continue with step 5.
  • Do NOT write to Linear yet - compose the plan in memory now and persist it only after the user approves (step 8).

Step 5 - Compose the comprehensive plan (in memory, do not write yet)

The plan must be /goal-ready. It goes into the Linear issue description's ## Plan block after approval (step 8). Required sections:

## Plan

### Setup
- Worktree: <path> on branch <branch>
- Demo data: <required | not required>

### Touch points (concrete files)
- <path/file-a> - <what changes>
- <path/file-b> - <what changes>

### Implementation steps (in order)
1. ...
2. ...

### Tests
- Unit: <which tests / where>
- Integration: <yes/no, which>
- Manual verification: <which flows>

### DoD gates
- <config.gates.build>
- <config.review.ensembleSize>x ensemble review before proposing the merge (one distinct stance per reviewer from `config.review.stances`, round-robin, identical full-PR scope), directly fixable findings as follow-up commits

### Risks / rollback
- <risk 1> -> <mitigation>
- Rollback path: <...>

### PR
- Base: `<config.git.baseBranch>`
- Title: `<issuePrefix>-XXX - <issue title>`
- Commit prefix: `<issuePrefix>-XXX - <short>`

Touch points are amendable mid-task. The ## Plan block is not frozen at approval. If the /goal loop later finds it insufficient, it uses the amendment move (defined in the AGENTS block): append an ### Amendments sub-section to ## Plan via save_issue, each entry recording reason, new touch points, and a LOC estimate. Autonomous only while the amendments add <=2 new non-high-risk touch points in total (a touch point is any file that must change but was not in the original plan, created or edited); once they add more than 2, or any high-risk area (config.areas.highRisk), stop and ask first. That is why the /goal file-scope constraint below reads "amended plan" - a recorded amendment is not a violation, whereas a genuine scope change still means ask or a follow-up issue.

Step 6 - Compose the /goal condition

/goal is a Codex built-in: it keeps working toward one durable objective until the stopping condition is reached, so the condition needs measurable, transcript-verifiable end states. Compose it exactly after this schema (single line, in config.language, ready to send - replace every <...> with the concrete values from the config and this issue):

/goal <issuePrefix>-XXX plan fully implemented: the approved ## Plan block written to the issue description via save_issue, all implementation steps from that ## Plan block done (if the plan proves insufficient mid-task, amend it first - append `### Amendments` to ## Plan via save_issue with reason + new touch points + LOC estimate; autonomous only while amendments add <=2 new non-high-risk touch points total and no high-risk area, otherwise stop and ask), <config.gates.build> exit 0, all acceptance criteria boxes in the ## Acceptance Criteria section toggled to `- [x]` via save_issue, PR created against <config.git.baseBranch> (title: "<issuePrefix>-XXX - <title>"), <config.review.ensembleSize>x ensemble review executed (<config.review.ensembleSize> independent reviewers run in parallel as separate `codex exec` processes in ONE batch, identical broad scope, each assigned one distinct stance from config.review.stances round-robin - and when a spec-conformance stance is configured, the reviewer assigned it also given the issue reference and checking the diff against ## Plan and ## Acceptance Criteria) with consensus synthesis and follow-up commits for consensus findings, re-review loop on larger changes (threshold: new logic / high-risk / >50 LOC / >3 new files / interface change, max <config.review.maxRounds> rounds), BEFORE `gh pr merge` all DoD boxes in the ## Definition of Done section toggled to `- [x]` via save_issue and the ## Final Summary section set with merge-SHA placeholder + PR number plus state="In Review", auto-merge via `gh pr merge <N> --squash --delete-branch` only if all gates are green (base=<config.git.baseBranch>, build exit 0, all DoD boxes checked, no open majority critical findings, re-review loop finished, no user override), MANDATORY step after a successful merge: in the MAIN working copy (not the task worktree) run `git checkout <config.git.baseBranch> && git pull --ff-only` and confirm the new HEAD in a user message - this step must NOT be skipped, and AS THE LAST STEP BEFORE LOOP EXIT explicitly save_issue state="Done" plus a description patch with the real merge SHA in ## Final Summary (the loop must NOT stop earlier even if everything else looks finished). Constraints: no --no-verify, no hook bypass, no push to protected branches, no force push, <config.extraConstraints, comma-joined - omit if empty>, no files outside the amended plan's touch points. Stop after 40 turns if not fulfilled.

Ensemble review via codex exec (this is the Codex fan-out the condition refers to): launch config.review.ensembleSize reviewers as independent codex exec processes in ONE batch (true parallelism), each with the PR number + branch + worktree path + an identical broad-scope prompt (code quality, bugs, logic, conventions, tests, edge cases, error handling, security, high-risk areas, performance) plus one distinct stance taken from config.review.stances, assigned round-robin across the reviewers (reviewer i -> stances[i % stances.length]). The stance decorrelates the ensemble without narrowing scope: each reviewer leads with its stance's lens but still covers the whole diff. If config.review.stances includes spec-conformance, ensure one reviewer is assigned that stance - assign it explicitly if the round-robin position would otherwise fall outside ensembleSize - and give that reviewer the issue reference (<issuePrefix>-XXX) plus a check of the diff against the issue's ## Plan and ## Acceptance Criteria; if no such stance is configured, no reviewer performs the Plan/AC check. Ask each for a structured report (Critical / Important / Suggestions / Strengths) with file:line references. Synthesize yourself: consensus findings (>=2 reviewers) fixed directly, singletons judged critically, conflicts decided explicitly. Prefer codex exec --json for machine-readable output; run reviewers read-only and apply fixes yourself in the worktree afterwards.

If the issue touches a high-risk area (config.areas.highRisk), add to the constraints: smaller commits, intermediate verification after every destructive data operation.

If a single-writer:<area> label is active, add: no parallel edits to <area> hot files while another issue is In Progress.

If config.merge.auto is false, the loop must never run gh pr merge. Adjust the condition in two places: (1) change BEFORE `gh pr merge` to BEFORE finishing; (2) replace everything from auto-merge via `gh pr merge <N> --squash --delete-branch` up to and including the state="Done" clause with: NO merge (merge.auto=false): AS THE LAST STEP BEFORE LOOP EXIT, after state="In Review" is set, report the PR URL and the gate status (base, build exit code, DoD boxes, open findings, review rounds) in a user message and stop - merging is the user's decision, do not run gh pr merge. The ## Final Summary keeps the merge-SHA placeholder; the user (or an explicitly instructed agent) merges later and closes out with state="Done" + the real SHA.

Step 7 - Present the plan for approval

Present a compact overview and get explicit approval:

  • Worktree path + branch
  • Destructive-setup decision (one sentence, if applicable)
  • Number of implementation steps
  • Main risks (max 2 bullets)
  • The fully composed /goal command from step 6 in its own code block (copy-paste ready)
  • Note: "After approval I will write the plan into the Linear issue (## Plan block); then please send the /goal command."

Step 8 - After plan approval

Once the user approves the plan: do NOT start any implementation work yourself. Instead:

  1. Persist the plan: save_issue with the full description body (add/replace the ## Plan block, keep the existing ## Acceptance Criteria and ## Definition of Done content). Read with get_issue first, patch precisely, write back - the description API replaces the whole body. (The issue was already claimed In Progress in step 1.)
  2. Reply with exactly this structure:
Plan approved and written to the issue. Please start the autonomous loop:

/goal <condition from step 6>

(Into the chat line, then Enter.)

Wait for the user's /goal command. Only when it arrives does implementation begin - through the official /goal loop, not this skill.

Rationale: a skill cannot launch /goal itself. The /goal loop beats a DIY continue: it keeps working toward the measurable stopping condition, is robust against intermediate errors, and can be paused/resumed.

Hard rules

  • In steps 0-8: NO code changes, NO destructive setup runs, NO commit/push/PR. The only Linear mutations are the In Progress claim (step 1) and, after approval, the plan write (step 8). Implementation happens exclusively in the subsequent /goal loop.
  • Destructive setup commands only after explicit user confirmation.
  • With an active single-writer:<area> label: re-check for competing In Progress issues before step 6; on conflict ask the user.
  • The goal condition must be measurable in the transcript - no conditions like "code is clean".
  • All description patches via save_issue with the complete description body: get_issue first, patch precisely, write back.
  • At most one active /goal per worktree.

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.