Token导航 LogoToken导航TokenDH.com
待分类可写文件github未标认证来源可访问clear审计未展示

archive-increments归档增量

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

155

周安装

17

GitHub Stars

127

下载量

140
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:archive-increments(归档增量)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/archive-increments
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill archive-increments
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill archive-increments

简介

用于智能管理 .specweave/increments/ 文件夹的增量归档。

  • 采用 10-10-10 规则:保留最近 10 个活跃增量,10 天后自动归档。
  • 提供增量分类存储和历史版本管理能力。archive-increments 属于待分类类 Skill,可作为该场景下的辅助能力补充。
  • 安装需指定 GitHub 仓库路径,使用时需确认文件系统权限。
  • 涉及文件操作时应注意操作原子性和回滚机制。

SKILL.md

Increment Archive Manager

Expert at keeping the .specweave/increments/ folder clean and organized through intelligent archiving.

Core Knowledge

Archiving Philosophy

The 10-10-10 Rule:

  • 10 Active: Keep last 10 increments readily accessible
  • 10 Days: Archive increments inactive for >10 days
  • 10 Seconds: Archive operation should take <10 seconds

Archive Structure

.specweave/increments/
├── 0023-0032 (Active)          ← Last 10 increments
├── _archive/                   ← Completed/old increments
│   ├── 0001-0022              ← Historical increments
│   └── 0029                   ← Abandoned experiments
└── _abandoned/                 ← Failed/obsolete increments

Smart Detection Rules

Never Archive

  • Active increments (status: active)
  • Paused increments (status: paused) - may resume
  • Recent increments (last 10 by default)
  • Increments with open GitHub/JIRA/ADO issues
  • Increments with uncommitted changes

Always Archive

  • Completed >60 days ago
  • No activity >30 days (and status: completed)
  • Superseded increments (replaced by newer version)
  • Failed experiments (after confirmation)

Smart Grouping

  • Release groups: Archive all v0.7.x after v0.8.0 ships
  • Feature groups: Archive related increments together
  • Time-based: Quarter/month-based archiving

Usage Patterns

Keep Workspace Clean

# Interactive archiving - prompts for confirmation
/sw:archive-increments

# Keep only last 5 increments
/sw:archive-increments --keep-last 5

# Archive all completed increments
/sw:archive-increments --archive-completed

Prepare for Release

# Archive all pre-release increments
/sw:archive-increments --pattern "v0.7"

# Archive by date range
/sw:archive-increments --older-than 30d

Restore from Archive

# List archived increments
/sw:archive-increments --list-archived

# Restore specific increment
/sw:archive-increments --restore 0015

Configuration

Default Settings

{
  "archiving": {
    "keepLast": 10,              // Keep last 10 increments
    "autoArchive": false,        // Manual by default
    "archiveAfterDays": 60,      // Archive after 60 days
    "preserveActive": true,      // Never archive active
    "archiveCompleted": false    // Manual control
  }
}

Aggressive Cleanup

{
  "archiving": {
    "keepLast": 5,               // Minimal workspace
    "autoArchive": true,         // Auto-archive on completion
    "archiveAfterDays": 14,      // Archive after 2 weeks
    "archiveCompleted": true     // Auto-archive completed
  }
}

Archive Statistics

Current State Analysis

When asked about archiving, I analyze:

  • Number of active increments
  • Age of oldest active increment
  • Total size of increments folder
  • Number of completed increments
  • External sync status

Recommendations

Based on analysis, I suggest:

  • Overcrowded (>20 active): Archive all but last 10
  • Stale (many >30 days old): Archive by age
  • Post-release: Archive previous version increments
  • Large size (>100MB): Archive largest completed increments

Safety Features

Pre-Archive Checks

  1. Metadata validation: Check increment status
  2. External sync: Verify no open issues
  3. Git status: Check for uncommitted changes
  4. Dependencies: Check if referenced by active increments
  5. User confirmation: Show what will be archived

Archive Operations

  • Atomic moves: Use fs.move with overwrite protection
  • Preserve structure: Maintain full increment structure
  • Update references: Fix links in living docs
  • Reversible: Easy restore from archive
  • Audit trail: Log all archive operations

Smart Suggestions

When to Archive

  • After major release: Archive all pre-release increments
  • Quarterly cleanup: Archive increments >3 months old
  • Before new project phase: Archive previous phase work
  • Low disk space: Archive largest completed increments

Archive Patterns

  • By version: --pattern "v0.7" (all v0.7.x increments)
  • By feature: --pattern "auth|login" (auth-related)
  • By date: --older-than 30d (time-based)
  • By status: --archive-completed (all completed)

Integration Points

Status Line

  • Shows "23-32 (10 active, 22 archived)" format
  • Warns when >15 active increments
  • Suggests archiving when appropriate

Increment Commands

  • /sw:done can trigger auto-archive
  • /sw:status shows archive statistics
  • /sw:next considers archived increments

Living Docs

  • Archive preserves living docs references
  • Restore updates living docs links
  • Archive included in docs statistics

Best Practices

  1. Regular Cleanup: Archive monthly or after releases
  2. Keep Recent: Always keep last 5-10 increments
  3. Preserve Active: Never force-archive active work
  4. Group Related: Archive feature groups together
  5. Document Reasons: Add archive notes for context

Quick Reference

# Archive old increments
/sw:archive-increments --older-than 30d

# Keep workspace minimal
/sw:archive-increments --keep-last 5

# Archive after release
/sw:archive-increments --pattern "pre-release"

# Restore for reference
/sw:archive-increments --restore 0015

# Check archive stats
/sw:archive-increments --stats

Project-Specific Learnings

Before starting work, check for project-specific learnings:

# Check if skill memory exists for this skill
cat .specweave/skill-memories/archive-increments.md 2>/dev/null || echo "No project learnings yet"

Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.65%
按下载量换算43

Antigravity

21.76%
按下载量换算30

Cursor

17.05%
按下载量换算24

Gemini CLI

12.02%
按下载量换算17

OpenCode

8.56%
按下载量换算12

Codex

3.81%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills