Logo de Archive

Archive

Comunidade
rustyrazorblade
archive

Check the buildup of un-archived OpenSpec changes waiting on the default branch (one per merged-and-finalized issue) against a threshold (default 5, overridable), and — once confirmed with the owner — spawn a dedicated background worker to sync and archive them all in one pass and land one PR. Owner-invoked or offered by project-manager when it notices the buildup; never automatic. Part of the flow delivery workflow (see docs/workflow.md).

Visão geral

Publicado porrustyrazorblade
Repositórioskills
Nome da habilidadearchive
Estrelas
44
Forks
9
Arquivos incluídos
Somente instruções
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por rustyrazorblade no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Archive no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/archive
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rustyrazorblade/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/spec-flow/skills/archive .claude/skills/archive
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Archive em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Archive automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Archive não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

archive — batch-archive the piled-up OpenSpec changes

You are the central project-manager (this isn't tied to any one issue, so it's yours to run, the same way board/groom/setup are — no issue-manager involved). Every finalized issue leaves its openspec/changes/issue-<N> change sitting on the default branch, unarchived, until this runs. You watch for the buildup and check in with the owner — you never archive on your own initiative, and you never do the archiving work yourself; once the owner confirms, you delegate it to a dedicated background worker, the same way you delegate an issue to issue-manager.

Steps

  1. Count the buildup. List every top-level openspec/changes/* directory except archive/ on the default branch — each one is a finalized-but-unarchived issue. Use the <ref>:<path> form, not a plain pathspec — git ls-tree -- openspec/changes (no trailing slash) lists the directory itself, not its children (confirmed live); <ref>:<path> lists bare child names directly, and 2>/dev/null covers the case where openspec/changes doesn't exist in this tree at all (nothing pending, not an error):

    bash
    DEFAULT_BR=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)
    git fetch origin "$DEFAULT_BR"
    git ls-tree --name-only "origin/$DEFAULT_BR:openspec/changes" 2>/dev/null | grep -v '^archive$'

    Each entry is issue-<N> — extract <N>. Empty output means nothing's pending; say so and stop.

  2. Resolve the threshold. Default 5. Check for a standing override the owner has stated — in this conversation already, or written as a preference in this repo's (or their global) CLAUDE.md — before falling back to the default. This is the same kind of "check CLAUDE.md for a stated preference" project-manager already does for spawn instructions; don't invent a number that wasn't actually stated anywhere.

  3. Below threshold? Report the count against the threshold ("3 of 5 — not archiving yet") and stop, unless the owner explicitly asks you to archive now regardless of count (an ad hoc override for this run only — doesn't change the standing threshold for next time). Never treat silence as permission to lower the bar.

  4. At or above threshold (or overridden) — list the batch and confirm before doing anything. Show the owner exactly which issues are about to be archived, one per - line as <number>: <title>, and ask before proceeding, as one question in the format in Presenting to the owner in docs/workflow.md. This is real confirmation, not a formality — archiving lands a real PR, and the owner should see the batch before it's built, the same way they see a design before it's implemented.

  5. Confirmed — spawn the worker, don't do the work yourself. This is the only upfront owner check-in — once you spawn, the worker builds the batch, commits, opens the PR, and merges it, fully on its own, no further confirmation needed for any of that. The one exception is a genuine content conflict while reconciling delta specs (two changes touching the same requirement incompatibly) — the worker doesn't guess a resolution or stop-and-exit for that; it posts a comment on the conflicting issues and pauses to work it out with the owner interactively, in that same session, then continues the batch from where it left off once resolved — see agents/archive-batch.md step 3. A blocked merge (required checks, branch protection) also stops the worker, but that's mechanical, not a judgment call, and it does end the run rather than pausing it — relay whatever it reports.

    bash
    ${CLAUDE_PLUGIN_ROOT}/scripts/spawn-archive-batch.sh

    Report its one-line output — the session id — and tell the owner they can attach via claude agents (select it from the list) to watch it work, same as an issue-manager. Don't create the worktree, run openspec-sync-specs/openspec-archive-change, or open the PR yourself — if you catch yourself about to do any of that inline, stop; that's agents/archive-batch.md's job, running as its own process specifically so this doesn't become work in your own context. If the script fails, relay its error verbatim rather than hand-rolling a replacement spawn — same rule as spawn-issue-manager.sh.

Rules

  • Never invent a schedule. Don't suggest running this "every night" or wire it to anything automatic — the threshold check happens when you're asked, or when you naturally notice the count while doing something else (e.g. board); it's never a background timer.
  • Always confirm before spawning, even when the threshold is clearly met — see step 4. The one exception is the owner's own ad hoc "archive now" — that IS the confirmation.
  • You delegate this, you don't do it. Steps 1-4 are checks and a conversation; step 5 is a spawn, not an implementation. If you're editing OpenSpec files, running git worktree add, or calling gh pr create from here, you've drifted into archive-batch's job.
  • This never touches any issue's own feature branch or PR. It only ever operates on the default branch's already-merged openspec/changes/ content — a completely separate, code-free bookkeeping lane.
  • When you cite an issue or PR, always write it as <number>: <title>, on its own line with a - prefix — never a bare number, and never several run together inline in a sentence. The batch confirmation list in step 4 follows this format too. A question to the owner follows the format in Presenting to the owner in docs/workflow.md.

Perguntas frequentes

O que a habilidade de IA Archive faz?

Check the buildup of un-archived OpenSpec changes waiting on the default branch (one per merged-and-finalized issue) against a threshold (default 5, overridable), and — once confirmed with the owner — spawn a dedicated background worker to sync and archive them all in one pass and land one PR. Owner-invoked or offered by project-manager when it notices the buildup; never automatic. Part of the flow delivery workflow (see docs/workflow.md).

Por que usar Archive no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Archive é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Archive no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/rustyrazorblade/skills/tree/main/plugins/spec-flow/skills/archive. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Archive?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Archive?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Archive com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Archive é gratuita?

Sim. A habilidade é publicada no GitHub por rustyrazorblade sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇