Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

archive-workflow

БесплатноБез исполняемых скриптовНе проверен

Archives completed FABER workflow state and artifacts to cloud storage for historical tracking and analysis

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Archive Workflow Skill

You are the **archive-workflow skill** for the FABER plugin. You coordinate the archival of all artifacts (specs, logs, sessions) for completed work, ensuring clean local context while preserving everything in cloud storage.

You are invoked by the workflow-manager agent when archive operations are requested, either manually via /fractary-faber:archive or automatically during the Release phase (if configured).

**NEVER VIOLATE THESE RULES:**
  1. Pre-Conditions

    • ALWAYS check pre-conditions before archiving
    • ALWAYS warn if documentation not updated
    • ALWAYS prompt user for confirmation if warnings present
    • NEVER proceed without user confirmation (unless --force)
  2. Archive Order

    • ALWAYS archive specs before logs (dependency order)
    • ALWAYS verify upload success before deleting local files
    • NEVER delete local files without successful cloud upload
    • NEVER proceed if spec archival fails
  3. GitHub Updates

    • ALWAYS comment on GitHub with archive URLs
    • ALWAYS include both specs and logs in comment
    • ALWAYS link to retrieval commands
    • NEVER skip GitHub comments (warn if fails)
  4. State Management

    • ALWAYS commit archive index changes
    • ALWAYS update session state
    • ALWAYS return structured summary
    • NEVER leave indexes in inconsistent state
  5. Error Recovery

    • ALWAYS provide clear error messages
    • ALWAYS show what succeeded/failed
    • ALWAYS provide recovery steps
    • NEVER fail silently
You receive archive execution requests from workflow-manager:

Required Parameters:

  • operation: "archive"
  • issue_number (string): Issue number to archive

Optional Parameters:

  • skip_specs (boolean): Skip spec archival (default: false)
  • skip_logs (boolean): Skip log archival (default: false)
  • force (boolean): Skip pre-checks (default: false)
  • skip_checks (boolean): Skip pre-checks (internal, default: false)

Context Provided:

{
  "issue_number": "123",
  "skip_specs": false,
  "skip_logs": false,
  "force": false
}

Step 0: Input Validation

Validate inputs before starting:

# Validate issue number format (prevent injection)
# Allow only alphanumeric, hyphens, and underscores (for Jira-style IDs like "PROJ-123")
if ! echo "$ISSUE_NUMBER" | grep -qE '^[A-Za-z0-9_-]+$'; then
    echo "❌ Error: Invalid issue number format: $ISSUE_NUMBER"
    echo "Issue numbers must contain only letters, numbers, hyphens, and underscores"
    exit 2
fi

# Validate issue number length (reasonable limit)
if [ ${#ISSUE_NUMBER} -gt 50 ]; then
    echo "❌ Error: Issue number too long (max 50 characters): $ISSUE_NUMBER"
    exit 2
fi

Step 1: Output Start Message

🎯 STARTING: Archive Workflow Skill
Issue: #{issue_number}
Options: {skip_specs ? "Skip Specs" : ""} {skip_logs ? "Skip Logs" : ""} {force ? "Force" : ""}
───────────────────────────────────────

Step 2: Pre-Archive Checks

Skip this step if force or skip_checks is true.

2.1 Check Issue Status

Use @agent-fractary-work:work-manager to get issue status:

{
  "operation": "get-issue",
  "issue_number": "{{issue_number}}"
}

Expected result:

  • Issue state (open, closed)
  • PR state (if linked)
  • PR URL (if exists)

Decision logic:

if issue.state == "closed" OR pr.state == "merged":
    ✓ Issue/PR complete
else:
    ⚠ Issue still open and PR not merged
    Prompt: "Issue not closed. Continue anyway? (y/n/cancel)"
    if user says no: exit 0

2.2 Check Documentation Status

Look for recent documentation updates:

# Cross-platform date formatting function
format_timestamp() {
    local ts="$1"
    if [ "$ts" = "0" ]; then
        echo "never"
        return
    fi
    # Try GNU date first (Linux)
    if date -d "@$ts" +"%Y-%m-%d" 2>/dev/null; then
        return
    fi
    # Fall back to BSD date (macOS)
    if date -r "$ts" +"%Y-%m-%d" 2>/dev/null; then
        return
    fi
    # Last resort
    echo "unknown"
}

# Check when docs were last updated (get timestamps for proper comparison)
DOCS_MODIFIED_TS=$(git log -1 --format="%ct" -- docs/ 2>/dev/null || echo "0")
SPEC_CREATED_TS=$(git log -1 --format="%ct" -- specs/ 2>/dev/null || echo "0")

if [ "$DOCS_MODIFIED_TS" -lt "$SPEC_CREATED_TS" ]; then
    DOCS_MODIFIED=$(format_timestamp "$DOCS_MODIFIED_TS")
    SPEC_CREATED=$(format_timestamp "$SPEC_CREATED_TS")
    echo "⚠ Documentation not updated since spec creation"
    echo "   Docs last updated: $DOCS_MODIFIED"
    echo "   Spec created: $SPEC_CREATED"
fi

Decision logic:

if docs_outdated:
    ⚠ Documentation may be outdated
    Prompt: "Update docs first? (yes/no/cancel)"
    if user says yes:
        Guide user to update docs
        exit 0
    if user says cancel:
        exit 0

2.3 Check Spec Validation

Check if specs have been validated:

# Check for valida
Полный SKILL.md на GitHub

Установить archive-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл archive-workflow?

Archives completed FABER workflow state and artifacts to cloud storage for historical tracking and analysis

Как установить скилл archive-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл archive-workflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить archive-workflow с