description: Archive completed session work allowed-tools: Bash(git:), Read, Write, Glob, mcplinear
Run git rev-parse --show-toplevel to locate the repository root.
Read <git-root>/.bonfire/index.md and identify completed work:
Move completed session content to <git-root>/.bonfire/archive/.
Naming convention: YYYY-MM-DD-<issue-id>-<topic>.md
Examples:
2025-12-22-GTMENG-387-inbound-improvements.md (with issue ID)2025-12-22-fix-login-redirect.md (without issue ID)Use this template:
# [TOPIC]
**Date**: [DATE]
**Issue**: [ISSUE-ID or N/A]
**PR**: [PR link if available]
**Status**: Completed
---
## Summary
[Brief description of what was accomplished]
## Accomplished
- [List of completed items]
## Decisions Made
- [Key decisions and rationale]
## Impact
- [Before/after metrics if applicable]
- Files changed: [count]
## Related
- [Links to related docs, specs, or code]
Update <git-root>/.bonfire/index.md:
Add link to archive file in Archived Sessions section:
## Archived Sessions
- [YYYY-MM-DD - Topic](archive/YYYY-MM-DD-issue-topic.md)
Read specsLocation from <git-root>/.bonfire/config.json (default .bonfire/specs/).
Check if any specs in the configured location are now complete:
docs/ firstRead <git-root>/.bonfire/config.json and check linearEnabled.
If linearEnabled is true:
[A-Z]+-[0-9]+ pattern)linear_update_issue tool with:
id: The issue ID (e.g., ENG-123)status: Set to "Done" or completed statelinear_add_comment to add link to archive/PRNote: Tool names may vary by Linear MCP implementation.
If linearEnabled is false or not set: Skip this step.
Read gitStrategy from <git-root>/.bonfire/config.json.
If gitStrategy is "ignore-all": Skip committing - archive is local only.
If gitStrategy is "hybrid" or "commit-all":
git add -f - respect gitignoreStage unignored files:
git add .bonfire/
Check if anything was staged before committing:
git diff --cached --quiet .bonfire/ || git commit -m "docs: archive completed session work"
Report: