Borrowing it
Nothing to install: this file belongs to Zenobia000/cursor-agentic-coding-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Zenobia000/cursor-agentic-coding-template/main/.cursor/commands/archive.mdgit clone --depth 1 https://github.com/Zenobia000/cursor-agentic-coding-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/archive)<a href="https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/archive"><img src="https://agentmods.dev/badge/commands/zenobia000/cursor-agentic-coding-template/archive/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/zenobia000/cursor-agentic-coding-template/archive"><img src="https://agentmods.dev/badge/commands/zenobia000/cursor-agentic-coding-template/archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.01094 |
| Opus 5.5 | $0.00007 | $0.00438 |
| Sonnet 5.5 | $0.00003 | $0.00219 |
| Haiku 4.5 | $0.00002 | $0.00109 |
Grade A, and why
archive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- archive — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
📚 ARCHIVE MODE (v3)
封存當前週期的知識與成果,為未來鋪路,確保沒有任何智慧被遺忘。
1. PLAN 🎯 (規劃)
Objective
將一個已完成開發週期的所有工作成果 (即
memory-bank/current/中的所有內容) 進行結構化歸檔,並清理工作區,為下一個週期的乾淨啟動做準備。
Guiding Rules
在執行此指令時,AI Agent 必須遵循以下規則:
- 主要規則:
.cursor/rules/principles/global.mdc - Git 工作流:
.cursor/rules/process/git-workflow.mdc - 核心隔離:
.cursor/rules/isolation_rules/main.mdc
Prerequisites Check
在開始封存之前,請確保:
- ✅ 實作已完成:
memory-bank/current/tasks.md中絕大多數任務都已標記為completed。 - ✅ 反思已完成: 一個對應的
reflection-*.md文件已存在於memory-bank/current/中。 - ❌ Failure Action: 如果任務未完成或反思不存在,AI 必須拒絕封存,並建議用戶先執行
/implement或/reflect。
2. DO 実行 (執行)
Core Process
遵循一個嚴謹的、不可逆的封存流程:
Step 0: 健康檢查 (Health Check)
- 檢查拓撲完整性: 驗證
memory-bank/current/中的tasks.md,progress.md, 和reflection-*.md文件是否存在且狀態一致。 - 批判性思考: 封存是一個週期的終點。AI 應檢查是否存在任何「半成品」。如果發現,應向用戶提問並請求確認。
Step 1: 文件定稿 (Finalize Documentation)
- 基於
memory-bank/current/reflection-*.md的內容,更新README.md和CHANGELOG.md。
Step 2: 記憶體互動 - 讀取與寫入 (Memory Interaction - Read & Write)
- 創建封存目錄: 創建一個新的、以日期命名的封存目錄,例如
archive/sprint-2025-12-18/。 - 複製記憶體: 將整個
memory-bank/current/目錄的內容複製到新的封存目錄中。 - 清理工作區: 在用戶確認後,清理
memory-bank/current/中的內容。
Step 3: 版本控制 (Version Control)
- Git Add: 將新的
archive/目錄和更新的README.md/CHANGELOG.md添加到 Git 暫存區。 - Git Commit: 創建一個標準化的提交訊息,例如
chore(project): archive sprint-2025-12-18 work cycle。
3. CHECK ✓ (檢查)
Verification Checklist
- 封存目錄已創建:
archive/sprint-..../目錄和其內容是否已成功創建? - 記憶體已複製: 封存目錄中的文件是否與封存前的
memory-bank/current/內容完全一致? - Git 狀態正確:
git status是否顯示了預期的變更?
4. ACT 改善 (行動)
Finalization
- 向用戶確認: 在執行清理和提交等不可逆操作之前,AI 必須向用戶請求最終批准。例如:「我已準備好將本次週期的所有成果封存到
archive/sprint-..../並創建一個 Git 提交。清理工作區並提交後,此操作不可逆。 是否繼續?」
Next Steps
封存完成後,一個完整的週期便告結束。
- 👉 Primary Next Step: 執行
/van指令,重新初始化一個乾淨的memory-bank/current工作區。 - 💡 Alternative: 將專案移交給維護團隊,並告知他們
archive/目錄是最終的知識庫。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 65 lines · 17 tokens per session scan A ce583f43fce4
archive is a command published in the GitHub repository Zenobia000/cursor-agentic-coding-template (30 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 1,094 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.
release-plan
A release-planning command for a software change. It documents the release scope, rollback plan, gradual or full rollout, and monitoring before waiting for human approval.