An agent executing a task from readiness to handoff — checking the input (owner, allowed files, contract, criteria), context, branch and worktree, code together with tests, checks, self-check, PR with a handoff report. Use it when an agent implements a task or fixes a bug (implement task, fix bug, worktree, handoff report, pull request).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Task Execution?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-task-execution)
---
name: task-execution
description: An agent executing a task from readiness to handoff — checking the input (owner, allowed files, contract, criteria), context, branch and worktree, code together with tests, checks, self-check, PR with a handoff report. Use it when an agent implements a task or fixes a bug (implement task, fix bug, worktree, handoff report, pull request).
metadata:
category: governance
---
# Task execution
## Purpose
This skill guides the assignee through the workflow steps so that the result can be verified independently: a change within the allowed files, code with tests, evidence of checks and a handoff report. What exactly to build is decided by the requirements and ADRs; the skill is about how to take the task to review.
## Inputs
- Task card: owner, allowed files, input contract, acceptance criteria.
- Skills of the zone, ADRs, Project Brain entries.
## Outputs
- PR with code and tests.
- Handoff report with gate evidence.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "task execution"` for prior decisions, patterns and lessons.
- [AGENTS.md](../../../AGENTS.md) — invariants, restrictions, skills table.
- [docs/agents.md](../../../docs/agents.md#agent-task) — agent task steps, states, rules and authority.
- [engineering standards](../../../standards/README.md) — rules for code and documentation.
- Project stack skills from the table in `AGENTS.md` — for the affected area.
- Handoff report format: [../../../templates/handoff-report.md](../../../templates/handoff-report.md).
## Steps
1. **Readiness.** Find the owner, allowed files, input contract and acceptance criteria in the task. Something is missing — ask the owner and do not start.
Done when all four items are named explicitly and the acceptance criteria are verifiable.
2. **Context.** Read the skills of your zone, the canonical documents and ADRs they link to, then the task's code. Documents are silent or contradict each other — a question for the owner with links to the lines, not a silent choice.
Done when it is clear for every acceptance criterion which code and which document define it.
3. **Plan.** List the files you will change and the tests that will prove the criteria. A file outside the allowed ones or a new decision (dependency, schema, contract, infrastructure) — first agreement with the owner and an ADR per `architecture-decisions`.
Done when the plan does not go beyond the allowed files, or going beyond them is agreed.
4. **Isolation.** A separate branch from the current `main` and a separate worktree. You do not write to `main`.
Done when `git status` shows the task's working branch.
5. **Implementation and tests.** Code and tests in the same change. For a bug — first a failing test, then the fix. Invariants from `AGENTS.md` are not violated, even temporarily.
Done when every acceptance criterion is covered by a test or a described manual check.
6. **Checks.** `npm run check`; after editing documents, agents or skills — `npm run check:docs`. A failure is not bypassed by disabling a check or a test.
Done when the commands finish with exit code 0 and their outcome is recorded for the report.
7. **Self-check.** Go through the "Checks" of this skill and of your zone's skills. Read your whole diff as a reviewer: unnecessary changes, debug code, secrets, commented-out code.
Done when the diff contains only what the task requires.
8. **PR and handoff.** Commits per Conventional Commits, a PR with a handoff report per the `.github/pull_request_template.md` template. Changes to authorization, secrets, trust boundaries and invariants are marked "needs independent review" and name `security-reviewer`.
Done when the PR is open, the report is filled in, the next owner is assigned and the reviewer is not you.
9. **Fixes after review.** Every finding gets a fix or a reasoned answer. No more than 3 retries of a step; after that — a question for the owner.
Done when there are no blocking findings.
## Best practices
- Smallest diff that meets every criterion.
- Failing test first for bugs.
- Record gate output verbatim in the handoff report.
## Common mistakes
- Starting without acceptance criteria.
- Touching files outside the allowed list "while there".
- Disabling a failing check.
## Example
Task "rate-limit password reset": readiness confirmed, failing test written, limiter added, `npm run check` exit 0, PR with handoff naming `code-reviewer` and `security-reviewer`.
## Reusable prompt
```text
Apply the task-execution skill (.agents/skills/task-execution/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Check readiness, plan files and tests, implement in a worktree with tests, run the gates and open a PR with a handoff report.
Cite evidence for every claim; list open questions separately.
```
## Checks
- [ ] Only allowed files were changed, or going beyond them was agreed.
- [ ] Every acceptance criterion is confirmed by a test or a described check.
- [ ] `npm run check` (and `npm run check:docs` if needed) — exit code 0, outcome in the report.
- [ ] The diff has no secrets, `.env*`, real personal data or debug code.
- [ ] New terms are in the glossary, new decisions are in ADRs.
- [ ] The handoff report is filled in; you do not approve your own PR.
## Out of scope
- Requirements and acceptance criteria — `product-requirements`.
- Breakdown and statuses — `delivery-planning`.
- Test strategy and composition — `test-strategy`.
- Review — `independent-code-review`, `independent-security-review` in a separate session.
- Stack methods (frameworks, libraries) — the project's stack skills.