archive-workflow
БесплатноБез исполняемых скриптовНе проверенArchives completed FABER workflow state and artifacts to cloud storage for historical tracking and analysis
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Archive Workflow Skill
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).
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)
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
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)
State Management
- ALWAYS commit archive index changes
- ALWAYS update session state
- ALWAYS return structured summary
- NEVER leave indexes in inconsistent state
Error Recovery
- ALWAYS provide clear error messages
- ALWAYS show what succeeded/failed
- ALWAYS provide recovery steps
- NEVER fail silently
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
Установить archive-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic