Logo van Codebase Hygiene

Codebase Hygiene

Community
IgorWarzocha
codebase-hygiene

Must apply when changing maintained code.

Overzicht

UitgeverIgorWarzocha
Repositoryhowaboua-agent-stuff
Skillnaamcodebase-hygiene
Sterren
426
Forks
46
Meegeleverde bestanden
10
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 10

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door IgorWarzocha op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Codebase Hygiene in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/IgorWarzocha/howaboua-agent-stuff/tree/main/packages/pi-skill-code/skills/codebase-hygiene
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/IgorWarzocha/howaboua-agent-stuff.git /tmp/howaboua-agent-stuff
mkdir -p .claude/skills
cp -r /tmp/howaboua-agent-stuff/packages/pi-skill-code/skills/codebase-hygiene .claude/skills/codebase-hygiene
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Codebase Hygiene in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Codebase Hygiene automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Codebase Hygiene niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Load applicable rules

Loaded references are authoritative.

  • Structural movement, ownership migration, and compatibility cleanup: references/refactoring.md
  • Test assessment, addition, deletion, and scoring: references/testing.md
  • Calls, dispatch, callbacks, continuations, imports, initialization, startup, and runtime cost: references/execution-topology.md
  • Dependencies, lockfiles, installers, scripts, CI actions, runtimes, compilers, and third-party tools: references/dependency-safety.md
  • Load language references for affected code and relevant cross-language contracts: references/js-ts.md, references/python.md, references/go.md, references/rust.md. Cover all repository languages for a repository-wide assessment.
  • React components, Hooks, rendering, state, and framework boundaries: references/react.md
  • For other languages, use repository evidence and current official ecosystem documentation.
  • Scores and caps: references/scoring-rubric.md. Score only when requested or already required.

Goal: leave a codebase that another agent can navigate efficiently, change coherently, verify quickly, and explain to a human from the code itself.

Inspect before editing

Optimize for agents working through search, bounded reads, and coherent multi-file edits. Do not imitate one-file-at-a-time human editing.

Apply governing instructions. Use the instructions already loaded by the harness and check for any missing instructions that cover the affected paths. Before adding behaviour, search for its existing owner and equivalent implementations. Read the complete owning function, component, or configuration section, plus the callers, contracts, state, and tests that determine the change. Do not edit from a search snippet. Read the full file for ownership or structural changes, cross-cutting state or initialisation, or when bounded reads leave ownership unclear.

Shape ownership

  1. Resist append bias. Before adding a branch, field, handler, test, or helper, decide whether it strengthens the current owner or reveals another responsibility.
  2. Exclude generated, vendored, and framework-owned files from size judgment unless maintained directly.
  3. Treat a maintained file above roughly 300 lines as a godfile candidate, not an automatic failure. Inspect mixed concerns, unrelated change reasons, central-path growth, hidden state, and agent readability. Cohesive stable tables, protocols, and algorithms may remain large. Growing mixed-responsibility files may not.
  4. Treat a function above roughly 50 lines as a review candidate. Split across ownership, abstraction level, state transition, effect, or failure-policy boundaries. Keep coherent algorithms and state machines together when extraction hides ordering.
  5. Collapse one-use helpers, wrapper factories, interfaces, and microfiles that add navigation without owning a decision, contract, translation, effect, lifecycle, resilience, security, or diagnostic boundary.

Dependency topology:

  • Minimize unrelated change spread, not raw fan-in or fan-out.
  • Tolerate local duplication while semantics are unsettled.
  • Consolidate only behavior with the same invariant, change pattern, and stable owner.
  • Allow high fan-in for small stable contracts whose implementation changes do not require consumer reassessment.
  • Keep high fan-out in explicit composition roots or orchestrators with visible dependencies, order, and failure policy.
  • Reject catch-all utils, helpers, common, types, managers, services, and contexts with unrelated ownership.

Keep execution traversable

  • Reading a symbol and its imports should reveal the next meaningful step and owner.
  • Preserve feature terminology through handlers, state, errors, logs, and tests.
  • Keep runtime selection statically enumerable where practical.
  • Add registries, events, middleware, factories, interfaces, and indirection only when the hop owns something consequential.
  • Keep import direction separate from execution direction. Stable policy must not import volatile infrastructure. Infrastructure may call policy or implement a policy-owned capability.
  • Construct dependencies at visible composition points.
  • Treat decorators, plugin registration, generated bindings, reflection, callbacks, queues, async continuations, and import-time setup as real edges that must remain discoverable.

Make contracts and state explicit

  • Validate external data at the boundary. Keep named data internally.
  • Use domain or branded types where values cross owners, can be confused, or represent completed validation.
  • Model exclusive states with variants or enums, not flag bags and optional-field combinations.
  • Preserve named fields until serialization or rendering. Avoid magic indexes, parallel arrays, positional tuples, and string-keyed domain dispatch.
  • Give each invariant, mutable transition, cache, transaction, and external effect one authority.
  • Do not hide dependencies in broad contexts, service locators, global registries, or ambient state.
  • Keep public interfaces narrow and in consumer-domain language. Never create an interface only for mocking.

Own behavior and proof

  • The owner that starts a resource, task, timer, subscription, worker, or connection owns failure propagation, cancellation, cleanup, and shutdown. Cover partial startup, blocked work, retries, backpressure, and idempotent cleanup. Background work must not outlive its state or dependencies.
  • Tests must reject credible failures in project-owned contracts, invariants, transitions, failure handling, and lifecycle. Do not reward volume, duplicate static checks, invent external providers, or retain feature-existence tests.
  • Preserve external behavior unless the user accepts a change. Internal types and layout may change when owned consumers migrate coherently. Public APIs, endpoints, serialized formats, persisted data, configuration, errors, and operational signals are contracts. Make migrations explicit.
  • Keep failures visible. Never pass checks through weaker strictness, broad ignores, unsafe casts, swallowed errors, skipped files, deleted useful tests, or silent fallback.
  • Separate unrelated dependency, toolchain, and policy upgrades from feature work. Apply references/dependency-safety.md to required dependency changes as well as optional modernisation.
  • Comments explain invariants, ordering, effects, compatibility, and non-obvious ownership. Delete code narration and unenforceable claims. Add documentation only when it reduces future discovery.

Finish

Run checks that exercise the changed contracts and risks. Re-read ownership and execution paths. Search for stale imports, registrations, adapters, duplicate owners, and old implementations. Report checks run, unavailable checks, and remaining material risk.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Codebase Hygiene?

Must apply when changing maintained code.

Waarom Codebase Hygiene gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Codebase Hygiene bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Codebase Hygiene in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/IgorWarzocha/howaboua-agent-stuff/tree/main/packages/pi-skill-code/skills/codebase-hygiene. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Codebase Hygiene gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Codebase Hygiene gebruiken?

Zoveel als je wilt. Je kunt Codebase Hygiene gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Codebase Hygiene gratis?

Ja. Deze skill is door IgorWarzocha op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇