Skip to content
Back to skills

Task Init

ASecurity

Stage 1. Start a task in its own folder (.tasks/<name>, a git worktree) without adding anything to the repo, then interview the human in the same session to capture the task, business rules, examples and acceptance criteria in its contract, and set status to Initialize.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
developmentpythongogitsecurityperformance

Works with

  • terminal

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ehtesham1981/light-harness --skill task-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ehtesham1981-task-init/badge)](https://www.skillsdirectory.com/skills/ehtesham1981-task-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-init
description: Stage 1. Start a task in its own folder (.tasks/<name>, a git worktree) without adding anything to the repo, then interview the human in the same session to capture the task, business rules, examples and acceptance criteria in its contract, and set status to Initialize.
disable-model-invocation: true
argument-hint: [short task name]
---

You are running **/light-harness:task-init**. Task name hint: `$ARGUMENTS`

Light Harness runs from the plugin and keeps nothing in the work repo: no files, rules or settings are added to it. The task's contract lives in the task folder's `.light-harness/` (ignored by git), and its audit trail in git refs that never reach a branch. If `light-harness` isn't found below, use `sh "${CLAUDE_PLUGIN_ROOT}/bin/light-harness"` in its place for the rest of this task, and give subagents that full command too.

1. Run `light-harness status` from the project's main folder.

   **Main checkout** (`Checkout: … main checkout`): start the task in its own folder, then carry straight on in this session.
   - If `$ARGUMENTS` names a task that's already in progress (`light-harness tasks`), use it and skip to the status check below.
   - Otherwise ask for a short task name if `$ARGUMENTS` is empty, and ask whether this task **builds on a finished task** (listed by `light-harness tasks`) or is **independent**.
   - Run `light-harness start-task "<name>"`, adding `--from <earlier-task>` if it builds on one. It creates `.tasks/<name>/` on branch `task/<name>`, with the contract at `.tasks/<name>/.light-harness/contract.md`. `<name>` from here on is the name it prints (lowercased, hyphenated).
     - If it says the repo has **no commits yet**, ask the human whether to make an empty first commit (`git commit --allow-empty -m "Initial commit"`); a task folder is made from a commit. Run `git init` first if the folder isn't a git repo, also with their OK.
     - If it says the repo still has **files from Light Harness 1.x**, stop. Relay the list, and tell the human to clean them up by running this in their own terminal in the project's main folder (`python3` on macOS/Linux): `python "${CLAUDE_PLUGIN_ROOT}/scripts/harness.py" uninstall` (add `--dry-run` first to see what it removes). It leaves the changes for them to review and commit. Write the command out with the plugin path filled in.
   - From now on, **this session's task is `<name>`**: add `--task <name>` to every `light-harness` command, and edit `.tasks/<name>/.light-harness/contract.md`.
   - Run `light-harness status --task <name>`. If it's beyond Initialize, tell the human that re-initialising will invalidate the plan approval, and ask whether to continue before doing anything. Otherwise go straight on to the interview.

   **Inside a task folder** (`Task: <name> (folder …)`): this session was opened in the task folder itself. Carry on below without `--task`. If status is beyond Initialize, ask before re-initialising, as above.

2. **Read the request first, before asking anything.** Read the issue or request text, and the code or tests it names (only those: exploring the codebase is the plan stage's job). Save any sample file or payload the human gives under `samples/`.

3. **Draft §1–§6 and show the draft.** Write the draft into the task's contract (`.tasks/<name>/.light-harness/contract.md`) and show the human a compact version. Label every detail you inferred rather than read `Assumption:` (e.g. `Assumption: duplicate rows are skipped and counted in the summary`), so the human can see at a glance what to check. Cover:
   1. **Goal**: what outcome, for whom, and why now.
   2. **Inputs and outputs**: where the data comes from and what exactly should be produced.
   3. **Business rules**: the rules the logic must follow, with thresholds, precedence, rounding, time zones, and what to do with invalid or duplicate input, each stated precisely. When a rule holds for every input rather than for a few examples ("existing outcomes don't change", "the guard blocks every write into X", "the parser reads every legacy file"), tag it `[Preservation]` (outcomes unchanged from the base commit, apart from listed changes) or `[Invariant]` (a property of every input), with its four parts as sub-bullets: `Input space:` (the dimensions and their values), `Oracle:` (the base-commit code, a reference, or a property), `Unacceptable failure:` (the failure direction that is never acceptable) and `Allowed changes:` (the outcomes this task may change, or `none`). Untagged rules are Example rules.
   4. **Examples**: at least one happy path, one edge case and one error case, each with concrete input and exact expected output.
   5. **Acceptance criteria**: 3–7 testable criteria in Given/When/Then form.
   6. **Constraints and scope**: systems it may and may not touch, data sensitivity, performance or scale, deadline, expected lifespan, and what's explicitly out of scope.

   Use the IDs `BR-n`, `EX-n` and `AC-n` (numbered from 1 in every task). Every AC must be observable and testable. Edit only §1–§6.

   **Level.** Propose a Level for §1 from the request and the files it will likely touch, as `**Level:** small|standard|critical — <one-line reason>`, and ask the human to confirm it with the draft. `small`: a contained change (one or a few files, no shared logic, nothing that gates other work); it gets at most 5 open questions, seeded sweeps of at most 200 cases and test files of at most 200 KB. `standard`: the default, today's full process. `critical`: high risk (security, data loss, a gate many tasks rely on); for now it runs like `standard`, and is recorded and shown in `metrics`. For example: `**Level:** small — one display file, no shared logic`. A contract with no Level line counts as `standard`.

4. **Ask only what changes scope, behaviour or risk.** Ask at most 3 questions per message. Phrase each as what the user will experience, not as an implementation choice, and give a concrete example and a recommended default, e.g. "When an upload has duplicate rows, should the user see them skipped with a count in the summary (recommended default), or should the whole upload be refused? Example: 3 duplicates in 500 rows → '497 imported, 3 duplicates skipped'." Decide everything else yourself and label it `Assumption:` in the draft. Never invent rules or expected outputs the human hasn't seen; anything still unresolved goes in §6 Open Questions.

5. **Confirm in one pass.** Ask the human to confirm the draft, the Level and your defaults in one pass: they reply with corrections only, and everything they don't change stands. Record an unchanged default in §6 as `<question> — <answer> (default accepted)`. Apply the corrections; ask again only about what a correction leaves unclear.

6. Run `light-harness set-status Initialize --task <name>`. If the gate fails, fix the contract and retry.

7. Finish with: status, Level, AC count, open questions, and "Next: `/light-harness:task-plan`".

Don't explore the codebase beyond what the request names, write a plan, or write any code in this stage.

<!-- Copyright 2026 Ehtesham Ahmed. Part of Light Harness (see NOTICE). SPDX-License-Identifier: Apache-2.0 -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.