task-closeout
Original:🇺🇸 English
Translated
Capture the current task into a structured temporary session bundle under `.agents/sessions/` so a learning agent can later distill durable repo knowledge. Use for completed, blocked, or abandoned tasks with meaningful changes, debugging, validation, or reusable lessons.
11installs
Added on
NPX Install
npx skill4agent add hypercubed/agent-knowledge-starter-kit task-closeoutTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Task Closeout
Goal
Create a temporary handoff packet for later learning extraction.
Output location
Write inside the repo to .
.agents/sessions/<session-folder>/The session folder name is a sortable storage label. The canonical task/session identifier is the field inside the bundle's .
task_idsummary.jsonRequired outputs
- summary.json
- active-task.md
- learning-candidate.md
- changed-files.txt
- validation.txt
Example bundle
Filled-in reference files live under when this skill is installed under .
.agents/skills/task-closeout/example/task-bundle/.agents/skills/task-closeout/Rules
- Record only observable facts in active-task.md.
- Record only candidate lessons in learning-candidate.md.
- Distinguish clearly between what failed, what worked, and what is only a hypothesis.
- Do not update or any other durable repo knowledge file.
.agents/AGENTS.md - Do not write narrative summaries longer than necessary.
- Prefer concise bullet lists.
Procedure
- Determine or create .
repo_id - Determine or create .
task_id - Create a session folder using the pattern .
YYYYMMDD-HHMMSS-short-topic - Keep one task-closeout bundle per session folder.
- Collect changed files.
- Collect commands run and validation results.
- Write active-task.md.
- Write learning-candidate.md.
- Write summary.json with status, metadata, ,
repo_id, and optional agent identifiers when available.task_id - Mark the session bundle ready for distillation.
Optional agent metadata
Record agent provenance whenever the active tool can supply it. Record session provenance whenever the active tool can supply a stable session identifier.
- In , add
summary.jsonwhen the active agent/tool identity is known.agent - In , add
summary.jsonwhen the active agent/tool exposes a stable session ID.agent_session_id - In , add an Agent section when the agent/tool identity is known.
active-task.md - In , add an Agent Session ID section when the active agent/tool exposes a stable session ID.
active-task.md - Treat and
agentindependently: record either one when available; omit only the specific field/section that is unavailable.agent_session_id - Do not invent session IDs or require manual lookup outside the agent/tool's supported session history.
Session folder naming
- Use a deterministic, sortable folder name such as .
YYYYMMDD-HHMMSS-short-topic - Keep the slug short, lowercase, and tied to the task goal.
- Reuse the same session folder only for the single task-closeout bundle it was created for.
- Do not treat the folder name as the canonical task identity; use the field in
task_id.summary.json
active-task.md sections
- Task ID
- Agent (optional)
- Agent Session ID (optional)
- Goal
- Outcome
- Files Changed
- Commands Run
- Validation
- Remaining Work
- Notes
learning-candidate.md sections
- Task
- What failed
- What worked
- Reusable pattern
- Candidate update
.agents/AGENTS.md - Candidate troubleshooting note
- Candidate repo decision
- Candidate playbook
- Confidence