Logo di Structuring Documentation

Structuring Documentation

Organizzazione
shopwareLabs
structuring-documentation

Use when writing, editing, auditing, splitting, or measuring Markdown documentation surfaces — README.md, AGENTS.md, CLAUDE.md, and docs/ siblings. Triggers include "is this doc too long", "split this README", "measure the docs", "where does this documentation belong", "audit the documentation", and any request to check a documentation file against a size budget or repair its cross-references.

Panoramica

AutoreshopwareLabs
Repositoryai-coding-tools
Nome della skillstructuring-documentation
Stelle
45
Fork
7
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 3 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da shopwareLabs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Structuring Documentation in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/shopware-documentation/skills/structuring-documentation
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shopwareLabs/ai-coding-tools.git /tmp/ai-coding-tools
mkdir -p .claude/skills
cp -r /tmp/ai-coding-tools/plugins/shopware-documentation/skills/structuring-documentation .claude/skills/structuring-documentation
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Structuring Documentation in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Structuring Documentation non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Structuring Documentation non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Structuring Documentation

Treat every Markdown file in scope as a documentation surface. Each one holds one subject, one content class, and a bounded amount of reading.

The surfaces in scope are the paths the user names, or the documentation files the current change touches. The script has no default scope and requires explicit paths. When no scope is stated, ask for it rather than assuming one.

Nothing here gates a build. The measurement reports; you act on what it reports.

Budgets are named values: docs.size_goal (default if not otherwise stated: 5000), docs.size_limit (6500), docs.size_ceiling (10000), docs.max_index_rows (20). When earlier context or a user instruction assigns a different value, pass it to the script as --goal, --limit, --ceiling, or --max-index-rows; otherwise run the script on its built-in defaults. When earlier context supplies a subject-ownership table for the project, use it wherever the workflow consults ownership.

Workflow

dot
digraph doc_surfaces {
  node [shape=box];
  start [shape=doublecircle, label="editing or auditing\na doc surface"];
  scope [label="determine the surfaces in scope\n(ask when none is stated)"];
  measure [label="run measure.sh size + links"];
  subjects [shape=diamond, label="each surface holds one subject,\nowned by its directory\n(references/surface-contract.md)?"];
  rehome [label="split the surface, or move the\nsubject to its owning directory"];
  over [shape=diamond, label="verdict over\n(above docs.size_ceiling, 10000)?"];
  limit [shape=diamond, label="verdict allowance\n(above docs.size_limit, 6500)?"];
  crit [shape=diamond, label="is a criterion\ntrue of this file?"];
  goal [shape=diamond, label="verdict allowed\n(above docs.size_goal, 5000) with an\nobvious section boundary?"];
  split [label="split into docs/ siblings\n(references/splitting.md)"];
  nocrit [label="no criterion holds: length alone\nis not one, and neither is\npreferring not to split — split"];
  mark [label="mark the allowance or exemption\nunder the title (for size-exempt,\nverify the parsing consumer first)"];
  rows [shape=diamond, label="routing rows above\ndocs.max_index_rows (20)?"];
  group [label="introduce an\nintermediate grouping"];
  links [label="repair citations: convert bare paths,\nfix dead targets and stale anchors,\nrelink restating anchors"];
  moved [shape=diamond, label="did this change create a directory\nor move a section body?"];
  sweep [label="run the three sweeps, then run\nthem again after the repairs"];
  recheck [label="re-run measure.sh"];
  resolved [shape=diamond, label="every finding repaired, or\ndismissed with a stated reason?"];
  done [shape=doublecircle, label="findings resolved\nor dismissed"];

  start -> scope -> measure -> subjects;
  subjects -> rehome [label=" no"];
  rehome -> over;
  subjects -> over [label=" yes"];
  over -> split [label=" yes"];
  over -> limit [label=" no"];
  limit -> crit [label=" yes"];
  limit -> goal [label=" no"];
  crit -> mark [label=" yes"];
  crit -> nocrit [label=" no"];
  nocrit -> split;
  goal -> split [label=" yes"];
  goal -> rows [label=" no"];
  split -> rows;
  mark -> rows;
  rows -> group [label=" yes"];
  group -> links;
  rows -> links [label=" no"];
  links -> moved;
  moved -> sweep [label=" yes"];
  moved -> recheck [label=" no"];
  sweep -> recheck;
  recheck -> resolved;
  resolved -> over [label=" no"];
  resolved -> done [label=" yes"];
}

Measure

bash "${CLAUDE_SKILL_DIR}/scripts/measure.sh" <size|links|all> [flags] PATH...
bash "${CLAUDE_SKILL_DIR}/scripts/measure.sh" size <Module>/README.md <Module>/AGENTS.md
bash "${CLAUDE_SKILL_DIR}/scripts/measure.sh" links --strict <Module>
bash "${CLAUDE_SKILL_DIR}/scripts/measure.sh" all --goal 4000 <Module> <Module>/docs

${CLAUDE_SKILL_DIR} is this skill's own directory; on a host that does not define it, substitute the path to this skill's directory.

size reports counted characters, raw characters, routing rows, and a verdict per surface. links resolves every relative Markdown cross-reference and its anchor from the citing file's own position — web and mail links (http, https, mailto) and non-.md targets are skipped by design — and reports every backticked bare .md path with whether it resolves.

--strict exits 1 on any finding. Use it when you want a failing command; the default reports and exits 0.

Read the actual output. A surface is inside its budget when the tool says so, not when the edit felt small.

Resolve every finding by repairing it, or dismiss it with a stated reason. Dismissal is for findings the rules themselves exempt — a bare backticked path naming an instruction's operand — and for surfaces outside the change's scope. The workflow ends when every finding is repaired or dismissed; --strict is a machine gate, not that exit condition.

One subject per surface

Every surface in scope holds one subject, and the directory it sits in owns that subject. Read references/surface-contract.md to test ownership. A surface holding two subjects splits; a subject documented in the wrong directory moves to its owner.

An audit runs this check over every surface in scope, not only the ones the change edited.

Budgets

Counted on the raw file, in bytes. For the ASCII documentation this skill governs, bytes are characters; non-ASCII text counts by its encoded size.

Counted charactersVerdict
up to docs.size_goal (5,000)at goal
docs.size_goal to docs.size_limit (5,001 to 6,500)allowed; split when a section boundary is already obvious
docs.size_limit to docs.size_ceiling (6,501 to 10,000)only against a named allowance criterion, marked in the file and true of it
above docs.size_ceiling (10,000)never ships; the surface owns more than one subject

The budget is a state, not a threshold an edit crosses. A surface the change touches ends the change inside its budget whatever it measured beforehand. Being oversized already is the reason to split now, not an exemption.

Routing rows do not count: a list item or table row whose content is a link to another Markdown file plus at most one sentence. Past one sentence the whole row counts. AGENTS.md and CLAUDE.md count every character, routing included.

An index carries at most docs.max_index_rows (20) routing rows. Past that the surface wants an intermediate grouping, not more rows.

Allowances

Mark an allowance in an HTML comment directly under the title. Unmarked, the allowance does not exist and the budget is docs.size_limit (6,500).

markdown
<!-- size-allowance: lookup - one entry per supported field type, consulted one at a time -->
  • lookup — one enumeration whose entries share a uniform shape: a list, a table, or repeated same-level headings on one skeleton. Entries are consulted one at a time, never read through.
  • contiguous — the sections cite each other by name, so splitting would turn in-file references into mutual cross-file ones.
  • atomic — no internal boundary a reader would jump to: no subheading, and nothing standing in for one. A file that writes its sections as bold lead-ins has headings it declined to mark, and is not atomic.

Length alone satisfies none of the three, and neither does preferring not to split. The criterion is a claim about the file's structure that the next reader can check and reject.

A surface a machine consumer reads whole or parses structurally is exempt outright, and its marker names the consumer: <!-- size-exempt: parsed by <path> -->. Before claiming this, find the declaration and say what breaks. A file merely mentioned in a comment is not parsed.

Cross-references

Every reference to another Markdown file is a relative Markdown link: [Error codes](docs/error-codes.md).

Add an anchor only when the target is a section inside a larger file. An anchor whose slug equals the target file's own name is always wrong: it adds nothing over linking the file, and breaks the moment that heading is reworded.

A link whose target no longer exists, or whose anchor no longer matches a heading, is repaired to the content's current location. Content that is gone takes its citing sentence with it.

A backticked bare path is not a cross-reference. Convert every one that sends a reader somewhere. A path named as the operand of an instruction stays bare: "edit services.xml" names the file to act on, not a place to read.

Outside Markdown, in PHP, YAML, or a shell script, cite the bare path with its anchor and no link syntax. Link syntax renders nowhere there.

A citation with more than one target becomes prose. <Module>/*/README.md names every subdirectory's README and no link expresses it.

Never cite a line number.

Structure per directory

<Dir>/
├── README.md   title, orienting paragraph, explanation, index rows into docs/
├── AGENTS.md   symbol index, constraints, Navigation, the README pointer line
├── CLAUDE.md   @AGENTS.md
└── docs/       configuration reference, one subject per file

CLAUDE.md contains @AGENTS.md and nothing else, unless project extension content names a module-root exception (a work-in-progress status line, for example).

AGENTS.md never imports README.md. An @ import inlines its target in full, so importing human prose pays for it in every session. AGENTS.md points at the README by name instead, with this line verbatim:

> Conceptual overview and design rationale for this module live in `README.md`
> (same directory). The references and constraints below are sufficient for most
> code changes; read the README only when you need the mental model.

A docs/ directory is reached by link only. No @ import targets it. A directory with no reference material carries no docs/.

Which file a fact goes in

Read references/surface-contract.md before moving a proposition between files, before adding a section to a README.md or an AGENTS.md, and before deciding where a new subject lives. It carries the content classes, the single-home rule, and the subject-ownership rule.

Splitting a surface

Read references/splitting.md before moving any ## section into a new file. It carries the split procedure, the directory and file naming rules, heading promotion, and the four post-split defect classes that no content check finds.

After a move

A change that created a directory or moved a section body runs the three sweeps in references/splitting.md, then runs them again after the repairs. Re-run measure.sh afterwards, and walk the report again until every finding is repaired or dismissed.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Structuring Documentation?

Use when writing, editing, auditing, splitting, or measuring Markdown documentation surfaces — README.md, AGENTS.md, CLAUDE.md, and docs/ siblings. Triggers include "is this doc too long", "split this README", "measure the docs", "where does this documentation belong", "audit the documentation", and any request to check a documentation file against a size budget or repair its cross-references.

Perché usare Structuring Documentation su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Structuring Documentation è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Structuring Documentation in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/shopware-documentation/skills/structuring-documentation. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Structuring Documentation?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Structuring Documentation?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Structuring Documentation: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Structuring Documentation è gratuita?

Sì. È pubblicata su GitHub da shopwareLabs con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇