modelgas/skills/documentation/SKILL.md
# Skill: Documentation Assembly ## Purpose Assemble the final model documentation in a way that preserves the original intent of the model description while incorporating the validated findings from Skills 1–7. This skill is responsible for producing the human-facing narrative that will be read by reviewers, auditors, and downstream consumers, so it must be complete, internally consistent, and grounded in evidence. The goal is not to rewrite the model description from scratch, but to use it as
npx skillsauth add gtylee/codexgas modelgas/skills/documentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Assemble the final model documentation in a way that preserves the original intent of the model description while incorporating the validated findings from Skills 1–7. This skill is responsible for producing the human-facing narrative that will be read by reviewers, auditors, and downstream consumers, so it must be complete, internally consistent, and grounded in evidence.
The goal is not to rewrite the model description from scratch, but to use it as the baseline and then integrate verified methodology, risk tiering, ALW, tests, OPM, and production controls into the correct sections of the documentation template.
doc_template.md)docs/model_doc.md that is human-readable prose (not JSON).You are a technical writer for model documentation. You must preserve the intent and tone of the original model description while integrating validated findings from other skills. Be structured, evidence-grounded, and explicit about uncertainty.
Using the outputs of prior skills and the provided evidence: 1. Describe the business purpose and scope of the model as declared or evidenced. If intent or exposure is not declared, state the limitation explicitly. 2. Describe the methodology in narrative form, focusing on how inputs are transformed into outputs and what modelling choices are implied by the implementation. 3. Summarise the assumptions, limitations, and weaknesses, highlighting those most relevant to safe use of the model. 4. Describe validation, monitoring, and production controls proportionate to the model’s risk tier and operational role. 5. State the governance classification (risk tier) and the conditions under which the model is considered acceptable for use.
Write the document so that a reviewer can understand: • what the model does, • what it does not do, • where it can fail, • and how it is intended to be used safely.
Return a single documentation artifact in the requested format. By default the documentation should be in a MD file with the appropiate sections and maths notation in place.
Use the template placeholders as the backbone; do not invent new sections.
Preserve the intent of the existing model description and weave in findings rather than overwriting them.
Incorporate evidence-backed findings from earlier skills; do not introduce new assumptions.
Keep references human-friendly; avoid raw file paths and excessive code quoting.
If information is missing, include it in unknowns (do not speculate).
Every materially non-trivial claim must be supported by prior skill outputs or cited evidence ids; otherwise mark it Not evidenced and add to unknowns.
Do not “close” unknowns by inference. Only close unknowns via explicit human declarations (if provided).
Maintain consistency: terminology, units, and definitions should match across sections. • Prefer narrative paragraphs over bullet lists. You should aim to be more comprehensive rather than be succient Bullets are allowed only for: • short enumerations (e.g. inputs/outputs), • explicit lists of assumptions or controls, • tables or structured summaries. • Do not restate code mechanically. Describe behaviour and intent as they emerge from the implementation. • Do not smooth over weaknesses. Known limitations and modelling shortcuts must be stated plainly. • Do not speculate about business use, exposure, or controls. If not declared, state the uncertainty explicitly. • Write for a skeptical but reasonable reviewer: someone who understands models and governance but has not seen this code. • Align tone with risk tier: • T1/T2 documents may acknowledge pragmatism and proportionality. • T3 documents must be more formal and explicit about controls. • Avoid checklist-style language (“the model does X, Y, Z”). The document should read as a continuous explanation, not a compliance form. • Ensure traceability: Every material claim must be supported by prior skill outputs or cited evidence. • If the document closes unknowns, do so explicitly as human declarations, not inferred facts.
development
# Skill: Test Writing ## Purpose Design and generate a validation test suite that assesses conceptual soundness, implementation correctness, numerical stability, and outcome reasonableness. This skill converts model risk into executable tests. ## Inputs Required IR fields: - methodology outputs - ALW outputs - code evidence snippets Skill data inputs: - test_matrix.yaml (required test categories and patterns) ## Outputs - A test plan matrix (test name, purpose, category) - Generated pytest
development
# Skill: Risk Tiering ## Purpose Determine the governance risk tier of the model by assessing its financial impact, operational reliance, usage pattern, implementation complexity, and strength of existing risk mitigations. This skill establishes the downstream control requirements for all other skills. ## Inputs Required IR fields: - project metadata - symbols and public interfaces - imports and dependencies - commentary_md - evidence_index Skill data inputs: - rubric.yaml (axis definitions,
development
# Skill: Remediation Pack ## Purpose Convert CodexGAS findings into implementable remediation artifacts (patches, tests, config/control updates) that close evidenced weaknesses and governance gaps. ## Inputs Required inputs: - Prior skill outputs (1–7 at minimum; include 8/9 if present) - remediation rules (`data/remediation_rules.yaml`) - Optional `human_declarations` (only if provided; do not invent) - IR evidence index (for evidence ids) ## Outputs Produce a remediation pack containing: -
development
# Skill: Production Control ## Purpose Define technical controls that ensure safe, observable, and auditable operation of the model in batch and service environments. This skill turns governance into runtime behavior. ## Inputs Required IR fields: - model interfaces - deployment assumptions - risk tier output Skill data inputs: - monitors.yaml (control patterns and snippets) ## Outputs - Logging and lineage requirements - Monitoring hooks (input/output, drift, failures) - Audit artifacts -