मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)6.0k · #14516

openspec-bulk-archive-change

यह क्या करती है

यह स्किल एक साथ कई पूरे OpenSpec changes को archive करती है और जाँचती है कि codebase हर change से मेल खाता है। यह उन डेवलपर के लिए है जो OpenSpec में कई समानांतर changes चलाते हैं।

कब इस्तेमाल करें

  • ✓जब कई समानांतर OpenSpec changes पूरे हो गए हों और उन्हें एक साथ archive करना हो।
  • ✓जब changes के बीच spec फ़ाइलें टकराती हों और उन्हें code से मिलाना हो।
  • ✓जब आप सूची से चुनना चाहें कि कौन से changes archive हों।

Skill का लिंक

https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-bulk-archive-change/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस sprint के सभी पूरे हुए OpenSpec changes archive कीजिए, लेकिन पहले spec टकराव जाँच लीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट सक्रिय changes की सूची बनाता है, आपसे चुनने को कहता है, हर change की artifacts, tasks और specs जाँचता है, टकराव को code देखकर सुलझाता है, फिर चुने हुए changes archive करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Archive multiple completed changes in a single operation.

This skill allows you to batch-archive changes, handling spec conflicts intelligently by checking the codebase to determine what's actually implemented.

Input: None required (prompts for selection)

Steps

  1. Get active changes

    Run openspec list --json to get all active changes.

    If no active changes exist, inform user and stop.

  2. Prompt for change selection

    Use AskUserQuestion tool with multi-select to let user choose changes:

    • Show each change with its schema
    • Include an option for "All changes"
    • Allow any number of selections (1+ works, 2+ is the typical use case)

    IMPORTANT: Do NOT auto-select. Always let the user choose.

  3. Batch validation - gather status for all selected changes

    For each selected change, collect:

    a. Artifact status - Run openspec status --change "<name>" --json

    • Parse schemaName and artifacts list
    • Note which artifacts are done vs other states

    b. Task completion - Read openspec/changes/<name>/tasks.md

    • Count - [ ] (incomplete) vs - [x] (complete)
    • If no tasks file exists, note as "No tasks"

    c. Delta specs - Check openspec/changes/<name>/specs/ directory

    • List which capability specs exist
    • For each, extract requirement names (lines matching ### Requirement: <name>)
  4. Detect spec conflicts

    Build a map of capability -> [changes that touch it]:

    auth -> [change-a, change-b]  <- CONFLICT (2+ changes)
    api  -> [change-c]            <- OK (only 1 change)
    

    A conflict exists when 2+ selected changes have delta specs for the same capability.

  5. Resolve conflicts agentically

    For each conflict, investigate the codebase:

    a. Read the delta specs from each conflicting change to understand what each claims to add/modify

    b. Search the codebase for implementation evidence:

    • Look for code implementing requirements from each delta spec
    • Check for related files, functions, or tests

    c. Determine resolution:

    • If only one change is actually implemented -> sync that one's specs
    • If both implemented -> apply in chronological order (older first, newer overwrites)
    • If neither implemented -> skip spec sync, warn user

    d. Record resolution for each conflict:

    • Which change's specs to apply
    • In what order (if both)
    • Rationale (what was found in codebase)
  6. Show consolidated status table

    Display a table summarizing all changes:

    | Change               | Artifacts | Tasks | Specs   | Conflicts | Status |
    |---------------------|-----------|-------|---------|-----------|--------|
    | schema-management   | Done      | 5/5   | 2 delta | None      | Ready  |
    | project-config      | Done      | 3/3   | 1 delta | None      | Ready  |
    | add-oauth           | Done      | 4/4   | 1 delta | auth (!)  | Ready* |
    | add-verify-skill    | 1 left    | 2/5   | None    | None      | Warn   |
    

    For conflicts, show the resolution:

    * Conflict resolution:
      - auth spec: Will apply add-oauth then add-jwt (both implemented, chronological order)
    

    For incomplete changes, show warnings:

    Warnings:
    - add-verify-skill: 1 incomplete artifact, 3 incomplete tasks
    
  7. Confirm batch operation

    Use AskUserQuestion tool with a single confirmation:

    • "Archive N changes?" with options based on status
    • Options might include:
      • "Archive all N changes"
      • "Archive only N ready changes (skip incomplete)"
      • "Cancel"

    If there are incomplete changes, make clear they'll be archived with warnings.

  8. Execute archive for each confirmed change

    Process changes in the determined order (respecting conflict resolution):

    a. Sync specs if delta specs exist:

    • Use the openspec-sync-specs approach (agent-driven intelligent merge)
    • For conflicts, apply in resolved order
    • Track if sync was done

    b. Perform the archive:

    mkdir -p openspec/changes/archive
    mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
    

    c. Track outcome for each change:

    • Success: archived successfully
    • Failed: error during archive (record error)
    • Skipped: user chose not to archive (if applicable)
  9. Display summary

    Show final resul

अक्सर पूछे जाने वाले सवाल

क्या यह बिना पूछे changes archive करती है?

नहीं। यह पूछती है कि कौन से changes archive करने हैं और उन्हें अपने-आप नहीं चुनती।

टकराने वाली specs को कैसे संभालती है?

यह codebase जाँचती है कि वास्तव में क्या लागू हुआ है।

क्या मुझे OpenSpec चाहिए?

हाँ। यह OpenSpec changes और उसके command line tool के साथ काम करती है।

जानकारी

लेखक का मूल विवरण

Archive multiple completed changes at once. Use when archiving several parallel changes.

repo: fengshao1227/ccg-workflow

लोकप्रियता

GitHub स्टार
6.0k
रैंकिंग में स्थान
#14516
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills