Logo de Program Design

Program Design

Comunidade
chanmathew
program-design

Lock the shape of the code — types, signatures, call stacks, file layout — before anyone writes production code.

Visão geral

Publicado porchanmathew
Repositórioagent-skills
Nome da habilidadeprogram-design
Estrelas
26
Forks
1
Arquivos incluídos
1
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.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

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

Instalação

Instale a habilidade de IA Program Design 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/chanmathew/agent-skills/tree/main/program-design
  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/chanmathew/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/program-design .claude/skills/program-design
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Program Design 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 Program Design 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, Program Design 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á.

Program Design

Align on code shape before implementation: the types, signatures, call stacks, and file layout that architecture is too coarse for and review is too late to change. The model drafts compact sketches; you argue about taste; then you lock the shape. Nobody writes production code.

This is not an implementation spec. If you are writing function bodies, AC matrices, or a file-by-file work order, you have gone too far.

Core contract

  • Lock the program for one implementation unit: a ticket, or a capability whose architecture is already settled.
  • Behaviour comes from the spec and ticket. Architecture (if any) constrains seams. This skill owns taste — depth, naming, layout, call shape.
  • Inspect the repository. Prefer evidence over generic best practices.
  • Read-only: inspect code, docs, tests, and history; do not modify production code.
  • Draft sketches, grill taste forks, lock. Stop unless the user asks to continue.
  • Use /codebase-design language: module, seam, depth, interface.

When to use / skip

text
wayfinder → grill-with-docs → /to-spec
                 ↓
           /architecture     # system shape, if new seams / multi-ticket
                 ↓
           /program-design   # this skill
                 ↓
           /to-tickets → /implement
SituationSkill
Product or requirements still open/grilling / /to-spec first
New services, schemas, or module boundaries/architecture first
Obvious oneshot on an established patternSkip to /implement
Architecture is obvious; quality of the code is not/program-design
Ticket exists and this slice's internals matter/program-design on that ticket

Forbidden

  • Full function bodies
  • Per-AC behaviour matrices
  • Implementation sequences or phased checklists
  • Test-command and fixture inventories
  • Dual representation of the same fact
  • A second evidence appendix restating the sketches
  • Every available visual in one document
  • Box-drawing as the first character, ~ markers, column-padded comments, unicode ∧ ¬ ∨ ≠ in sketches

/to-spec and /to-tickets stay path-free. /architecture stays at module boundaries. /implement owns files, tests, and sequence.

Steps

1. Establish the unit

Read the ticket, spec, architecture (if any), ADRs, and project instructions.

Ready when the behaviour is clear and the remaining unknown is how the code should look. If behaviour is still open, stop and send the user back. If a multi-ticket spec is the only input and slice boundaries are unclear, send them to /to-tickets after this — or to /architecture if seams are also unclear.

Record the outcome in one sentence. Recommend defaults for non-blocking ambiguity. Stop for the user only when a taste fork would change public APIs, persistence, security, or system boundaries — those belong in architecture.

This step is complete when the unit and outcome are explicit.

2. Inspect the repository

Trace the current call path. Note symbols, types, helpers, and conventions this change should reuse. Conflicting patterns: pick one, with evidence.

This step is complete when every proposed seam has an existing counterpart or is named as new and justified.

3. Draft the smallest sketches

Pick only the views this change needs — usually two, rarely more than three. Follow references/program-design-template.md for rendering, including the sketch formatting rules. Those rules exist because chat highlighters, not the author, control color and wrapping.

Change is aboutView
Where it lives / what is newFile tree in diff — marker, then ├─ │ └─
Orchestration or control flowCall tree in diff — same glyphs as calldiff
Frontend structureComponent tree in diff
Types an agent would get wrongSignatures and types — no bodies
The algorithm is the decisionShort pseudocode

Use diff when the surrounding shape already exists. Show the whole block only when most of it is new.

Prefer, in order:

  1. Existing code over new code.
  2. Local code over a shared abstraction.
  3. Established repository patterns over new patterns.
  4. Explicit code over generic frameworks.
  5. A narrow implementation over speculative extensibility.
  6. One clear execution path over interchangeable layers.

New interfaces, factories, adapters, registries, or shared utilities require a current problem with multiple immediate call sites.

This step is complete when a reviewer can see the proposed program without reading prose around it.

4. Grill taste

Put the real forks to the user, one at a time, each with a recommendation. A taste fork is something a reviewer would fight about: deep vs shallow module, existing helper vs new file, sync vs job, this seam vs that one.

Revise the sketches after each answer. Do not interview about facts the repo already contains.

This step is complete when remaining forks are locked or explicitly deferred.

5. Lock

Persist only when a later session needs the sketches (/implement or /to-tickets in a fresh context). If none exists, use docs/agents/program-design/<short-slug>.md. For small work continuing in this conversation, the sketches in-chat are the artifact.

Before handing off, verify:

  • Two or three sketches, not a spec.
  • File layout and call stacks follow the sketch formatting rules in references/program-design-template.md (diff marker then ├─ │ └─, no ~, no padded comment columns, lines ~72 characters, predicates in words).
  • No function bodies, AC matrices, test commands, or implementation sequence.
  • Proposed symbols are marked; existing symbols come from the repo.
  • Taste forks are resolved or named as blocking.

Handoff

Report:

  1. Path to the document, or in-conversation.
  2. One-sentence summary of the locked shape.
  3. Blocking decisions, or None.
  4. Confirmation that production code was not modified.
  5. Next step:

If slices are not published:

text
/to-tickets using <program-design-path>

If a ticket already exists:

text
/implement <ticket> using <program-design-path>

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Program Design faz?

Lock the shape of the code — types, signatures, call stacks, file layout — before anyone writes production code.

Por que usar Program Design no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Program Design é 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 Program Design no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/chanmathew/agent-skills/tree/main/program-design. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Program Design?

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 Program Design?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Program Design 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 Program Design é gratuita?

A habilidade é publicada no GitHub por chanmathew. Consulte os termos de licenciamento no repositório. 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 👇