Best for
- Activation Triggers
- When NOT to Use
- Auditing an existing markdown document for structure, clarity, quality or publish readiness.
MichelKerkmeester/opencode--skilled-agent-loops-with-spec-kit-memory/.opencode/skills/sk-doc/sk-create-quality-control/SKILL.md
Validate, score, and optionally improve existing markdown via structure extraction, DQI scoring, HVR review, and validation gates.
Decision brief
create-quality-control is the existing-document audit and optimization workflow packet of the sk-doc family. It evaluates markdown, extracts structure, computes Document Quality Index evidence, applies Human Voice Rules, and, only when explicitly requested, edits the same target…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/MichelKerkmeester/opencode--skilled-agent-loops-with-spec-kit-memory --skill ".opencode/skills/sk-doc/sk-create-quality-control"Inspect the Agent Skill "sk-create-quality-control" from https://github.com/MichelKerkmeester/opencode--skilled-agent-loops-with-spec-kit-memory/blob/3d386ee21366523774d89c0aff3ebbbc8fa7ff10/.opencode/skills/sk-doc/sk-create-quality-control/SKILL.md at commit 3d386ee21366523774d89c0aff3ebbbc8fa7ff10. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Follow this workflow from the SKILL.md alone. Use references only for overflow examples and exhaustive detail.
1. Identify the target markdown file or folder. 2. Read the target before judging or editing it. 3. Determine document type using path, frontmatter and structure: - README or install guide. - SKILL.md or nested skill packet. - Command doc. - Reference or knowledge file. - Spec-s…
Run structure extraction and treat its output as the source of truth for structure, metrics, checklist results and DQI.
Classify findings before recommending or editing.
Review the target for Human Voice Rules after structural issues are understood.
Permission review
The documentation asks the agent to run terminal commands or scripts.
python ../shared/scripts/extract_structure.py <file>The documentation asks the agent to run terminal commands or scripts.
python ../shared/scripts/validate_document.py <file>The documentation asks the agent to create, modify, or delete local files.
**Remove metadata**: delete licenses, citations, directory trees and governance material that does not help the reader act.The documentation asks the agent to read local files, directories, or repositories.
Use these only for deep overflow detail, edge cases, exhaustive templates and long examples. Start at the route map, then open the single-concern file the task needs:Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 34 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
create-quality-control is the existing-document audit and optimization workflow packet of the sk-doc family. It evaluates markdown, extracts structure, computes Document Quality Index evidence, applies Human Voice Rules, and, only when explicitly requested, edits the same target document to improve structure, clarity and AI-friendliness.
This packet is invoked by /doc:quality. The command is report-only by default.
Use this workflow when the request involves:
/doc:quality on a README, SKILL.md, command doc, knowledge file, spec doc or generic markdown file.../shared/scripts/extract_structure.py.Keyword triggers: doc quality, /doc:quality, audit documentation quality, document audit, validate a document, validate markdown, validation rules, score this document, optimize this doc, DQI, HVR, human voice, AI-friendly documentation, extract structure, quality bar, flag, model's budget, trim.
Use another sk-doc packet when:
create-skill, create-readme, create-agent, create-command, create-feature-catalog, create-manual-testing-playbook, create-benchmark, create-flowchart, or create-changelog.sk-code.This is an independently invokable nested workflow packet under sk-doc. It owns existing-document validation and optimization, not artifact scaffolding. It has no packet-local graph-metadata.json; the advisor identity lives at the sk-doc hub root.
For this flat-reference packet, the canonical resilient router discovers resources at call time, guards and loads only what exists, scores the four audit/execution intents documented in WHEN TO USE, and returns a disambiguation checklist rather than silently loading nothing:
from pathlib import Path
SKILL_ROOT = Path(__file__).resolve().parent
RESOURCE_BASES = (SKILL_ROOT / "references", SKILL_ROOT / "assets")
DEFAULT_RESOURCE = "references/README.md"
# Four routing targets this packet distinguishes; keywords come from its activation triggers.
INTENT_MODEL = {
"validate": {"weight": 4, "keywords": ["validate a document", "validate markdown", "audit documentation quality", "document audit"]},
"score_dqi": {"weight": 4, "keywords": ["doc quality", "/doc:quality", "score this document", "dqi"]},
"optimize": {"weight": 4, "keywords": ["optimize this doc", "ai-friendly documentation"]},
"extract_structure": {"weight": 4, "keywords": ["extract structure", "hvr", "human voice"]},
}
UNKNOWN_FALLBACK_CHECKLIST = [
"Confirm the target document and execution mode (report-only audit, structure validation, content optimization, or batch snapshot)",
"Confirm whether the expected output is a DQI score/report or an optimized rewrite of the document",
"Confirm the quality-gate or DQI expectation driving this request",
]
def discover_markdown_resources() -> set[str]:
docs = []
for base in RESOURCE_BASES:
if base.exists():
docs.extend(path for path in base.rglob("*.md") if path.is_file())
return {doc.relative_to(SKILL_ROOT).as_posix() for doc in docs}
def _guard_in_skill(relative_path: str) -> str:
resolved = (SKILL_ROOT / relative_path).resolve()
resolved.relative_to(SKILL_ROOT)
if resolved.suffix.lower() != ".md":
raise ValueError(f"Only markdown resources are routable: {relative_path}")
return resolved.relative_to(SKILL_ROOT).as_posix()
def load_if_available(relative_path, inventory, loaded, seen) -> None:
guarded = _guard_in_skill(relative_path)
if guarded in inventory and guarded not in seen:
load(guarded)
loaded.append(guarded)
seen.add(guarded)
def score_intents(request) -> dict:
text = request.text.lower()
scores = {intent: 0 for intent in INTENT_MODEL}
for intent, cfg in INTENT_MODEL.items():
for kw in cfg["keywords"]:
if kw in text:
scores[intent] += cfg["weight"]
return scores
def route_quality_control_request(request):
inventory = discover_markdown_resources()
loaded, seen = [], set()
scores = score_intents(request)
if max(scores.values() or [0]) < 4: # Tier 1: unclear target/mode
load_if_available(DEFAULT_RESOURCE, inventory, loaded, seen)
return {
"load_level": "UNKNOWN_FALLBACK",
"needs_disambiguation": True,
"disambiguation_checklist": UNKNOWN_FALLBACK_CHECKLIST,
"resources": loaded,
}
intent = max(scores, key=scores.get) # Tier 2: happy path
# Flat resource topology: no references/<key>/ subdirectories. The intent selects the
# workflow step already documented below, not a keyed subtree; load the flat refs that exist.
for path in sorted(inventory):
load_if_available(path, inventory, loaded, seen)
return {"intent": intent, "resources": loaded}
Follow this workflow from the SKILL.md alone. Use references only for overflow examples and exhaustive detail.
/doc:quality and quality check requests.Do not edit in report-only mode. If the user asks for edits after a report-only run, confirm target and scope before modifying files.
Run structure extraction and treat its output as the source of truth for structure, metrics, checklist results and DQI.
python ../shared/scripts/extract_structure.py <file>
extract_structure.py takes only the file path. It always prints its full analysis as JSON to stdout and auto-detects the document type from path and content, so there are no flags to pass here. The --json and --type readme|skill|reference|asset|agent|command|install_guide|spec|changelog options belong to validate_document.py (the validation step below), not the extractor.
Read the JSON output and capture:
Never claim a DQI score without running or reading extract_structure.py output.
Classify findings before recommending or editing.
Use this order:
For READMEs, run format validation before claiming completion:
python ../shared/scripts/validate_document.py <file>
For folder or packet checks, run quick validation:
python ../shared/scripts/quick_validate.py <path>
If validation exits non-zero, fix blocking errors when edits are in scope, then re-run the failing command.
Run the shared authored-name checker for the target path and report its result as a non-scored filename-case conformance signal:
python ../shared/scripts/check_authored_name_kebab.py <file>
This signal does not change the DQI score or add a DQI component. It reports PASS, FAIL, or the canon exemption alongside the scored evidence.
Review the target for Human Voice Rules after structural issues are understood.
Flag only issues that matter:
Do not use HVR as a substitute for structural validation. HVR is a content-quality pass after extraction and gate interpretation.
For report-only, structure-validation or batch modes, produce a concise report with this shape:
**Document**
- Path: `<file>`
- Type: `<detected type>`
- Mode: `<report-only|structure validation|batch snapshot>`
**DQI**
- Score: `<score>`
- Band: `<band>`
- Source: `extract_structure.py`
**Filename Case (non-scored)**
- Result: `<PASS|FAIL|EXEMPT>`
- Source: `check_authored_name_kebab.py`
**Blocking Issues**
- `<issue>` or `None`
**Warnings**
- `<issue>` or `None`
**HVR Issues**
- `<issue>` or `None`
**Recommendations**
- `<actionable next step>`
For batch snapshot mode:
Use this path only when the user explicitly asks to improve the existing document.
Before editing, identify:
For developer-facing docs, map the document against 15-20 likely questions. Cover the relevant items:
Core principle: answer questions, do not merely document APIs. Developers ask "How do I...?", not "What is the signature of...?".
Apply only the patterns needed for the observed gaps:
For README-style docs, prioritize:
Minimize or remove:
When edits are in scope:
After any Write/Edit operation on markdown:
python ../shared/scripts/validate_document.py <file>
python ../shared/scripts/quick_validate.py <path>
python ../shared/scripts/extract_structure.py <file>
Do not claim readiness until validation has been run and its result has been read.
When validation identifies common structural failures, apply these fixes only if edits are in scope.
Detection: SKILL or command file does not start with ---.
Fix:
Detection: required sections are present but out of sequence.
Fix:
Detection: a required section is absent.
Fix:
Escalate instead of guessing when required content needs source evidence that is not present.
/doc:quality as report-only unless the user explicitly asks for edits.../shared/scripts/extract_structure.py as the source of truth for structure, metrics, checklist results and DQI.../shared/scripts/validate_document.py when applicable.extract_structure.py after edits to confirm the DQI and checklist state.sk-doc workflow packet.graph-metadata.json.--type cannot safely resolve it./doc:quality run but scope or target files are unclear.A successful create-quality-control run produces:
Edited documents must also satisfy:
Use these only for deep overflow detail, edge cases, exhaustive templates and long examples. Start at the route map, then open the single-concern file the task needs:
references/README.md - Route map over the reference set.references/workflows.md - The four execution modes and mode selection (externally cited entry file).references/validation-and-enforcement.md - Validation touchpoints, enforcement approval-prompt templates, phase interactions and troubleshooting.references/workflow-examples.md - Worked command examples and batch/multi-file processing.references/optimization.md - Optimization procedure: quality heuristics, analysis workflow, README strategy, checklist and iteration (externally cited entry file).references/transformation-patterns.md - The 16 transformation patterns with worked before/after examples.../shared/scripts/extract_structure.py - Structure extraction, metrics, checklist data and DQI.../shared/scripts/validate_document.py - Pre-delivery document validation gate.../shared/scripts/quick_validate.py - Fast validation for folders or skill packets.../shared/references/filesystem-naming-convention.md - Structural naming authority and exemption boundary.../shared/references/validation.md - DQI scoring, quality bands and gate interpretation.../shared/references/hvr-rules.md - Human Voice Rules for natural documentation style.Frequently asked questions
create-quality-control is the existing-document audit and optimization workflow packet of the sk-doc family. It evaluates markdown, extracts structure, computes Document Quality Index evidence, applies Human Voice Rules, and, only when explicitly requested, edits the same target…
The source record exposes this install command: npx skills add https://github.com/MichelKerkmeester/opencode--skilled-agent-loops-with-spec-kit-memory --skill ".opencode/skills/sk-doc/sk-create-quality-control". Inspect the command and pinned source before running it.
Static rules flagged exec-script, write-files, read-files in the source; the page lists the matching lines and excerpts.
Alternatives
NintendaDev/unikit-ai
Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.
terrylica/cc-skills
Semantic analysis of asciinema recordings. TRIGGERS - analyze cast, keyword extraction, find patterns in recordings.
K-Dense-AI/scientific-agent-skills
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.