agentleFS
RynaroRynaro/lararium/.claude/skills/idg-verification/SKILL.md

idg-verification

Skill2 starsChanged 5 months agoMITView on GitHub

Defines the CHT verification framework and provenance output for the Gate phase of the IDG cycle. Use when entering the Gate phase, verifying document completeness and truthfulness, running CHT scores, deciding DELIVER vs REVISE vs ESCALATE, or producing provenance metadata blocks.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every section in the template/skeleton is addressed

    line 36
  2. Distinctive:

    If a section is intentionally omitted, the omission is justified

    line 39
  3. Distinctive:

    Document structure follows a logical reading path

    line 57
  4. Distinctive:

    Every factual statement traces to a source artifact

    line 73
  5. Distinctive:

    No invented rationale attributed to people or teams

    line 76
  6. Very specific:

    If the source artefact arrived with an *.envelope.json sidecar, the provenance block records the envelope's message_id, thread_id, from, …

    line 78
  7. Distinctive:

    Hard cap: one revision pass: If the document still has issues after revision, deliver it with the remaining issues explicitly flagged in …

    line 98
  8. Distinctive:

    Every delivered document includes a provenance block at the end:

    line 104
  9. Distinctive:

    Use the most specific identifier available:

    line 123
  10. Very specific:

    If the document was handed off with an ECL sidecar envelope (*.envelope.json), ingest via:

    line 144
  11. Distinctive:

    If no ECL sidecar is present, commit an episodic note directly:

    line 156
  12. Distinctive:

    After ingest (or after delivery if CRYSTALIUM is absent), call:

    line 170
  13. Very specific:

    Graceful skip: if mcp__crystalium__* tools are unavailable (CRYSTALIUM not installed), skip ingest and session_end and mark the Gate phase …

    line 180
  14. Distinctive:

    Never hard-fail on absent CRYSTALIUM tools.

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verification Gates

Loaded during the Gate phase. Defines the CHT verification framework and provenance output.

When to use

Load this skill when entering the Gate (G) phase of the IDG cycle — specifically when running the CHT gate (Completeness / Helpfulness / Truthfulness), generating provenance metadata, or deciding whether to deliver, revise, or escalate. Also load for the section-level mini-gate in G5 parallel mode. Do NOT load upfront; trigger on demand at Gate entry.


CHT Framework

Three dimensions. Score each 1–5 after completing the draft.

C — Completeness

Does the document cover everything it should?

ScoreMeaning
5All template sections filled. No [GAP] markers.
4All sections filled. 1–2 minor [GAP] markers with justification.
3Most sections filled. Some [GAP] markers. Core content present.
2Significant sections missing or skeletal. Multiple [GAP] markers.
1Document is a stub. Insufficient context was provided.

Checks:

  • Every section in the template/skeleton is addressed
  • Required structural markers are present (at least one [DECISION] in ADRs, at least one [ACTION] in runbooks)
  • Cross-references between sections are consistent
  • If a section is intentionally omitted, the omission is justified

H — Helpfulness

Can the target audience understand and act on this document?

ScoreMeaning
5Reader can act immediately. Clear next steps, no ambiguity.
4Reader understands fully. Minor clarification might help in edge cases.
3Reader understands the main points. Some sections need more context.
2Reader would need to ask follow-up questions to act.
1Document is confusing or disorganized. Audience mismatch.

Checks:

  • Technical depth matches stated audience
  • Jargon is appropriate (defined if cross-functional audience)
  • [ACTION] items have enough context to be actionable
  • Document structure follows a logical reading path
  • Conclusions and summaries appear where readers expect them

T — Truthfulness

Is every claim grounded in source material?

ScoreMeaning
5Every claim sourced. No inference without labeling.
4Claims sourced. 1–2 minor inferences clearly labeled.
3Most claims sourced. Some inferences not explicitly labeled.
2Several unsourced claims. Risk of misleading reader.
1Significant fabrication or unsupported assertions.

Checks:

  • Every factual statement traces to a source artifact
  • Inferences are labeled ("Inferred:", "Likely:")
  • [DISPUTED] markers present where sources conflict
  • No invented rationale attributed to people or teams
  • Error messages, commands, file paths are exact (not paraphrased)
  • If the source artefact arrived with an *.envelope.json sidecar, the provenance block records the envelope's message_id, thread_id, from, performative, and verify_pass / verify_fail outcome. A verify_fail does not lower the score below 4 by itself; it is captured as [DISPUTED] in the document.

Gate Decision

ConditionAction
All dimensions ≥ 4DELIVER — document is ready
Any dimension 2–3REVISE — one targeted revision pass on failing dimensions only
Any dimension 1ESCALATE — insufficient context to produce this document. Report what's missing.

Revision Protocol

When revising:

  1. Identify the specific sections causing the low score
  2. Fix only those sections — do not rewrite the entire document
  3. Re-check the specific dimension that failed
  4. Deliver with a note on what was revised

Hard cap: one revision pass. If the document still has issues after revision, deliver it with the remaining issues explicitly flagged in the provenance metadata. The requester can provide additional context for a follow-up pass rather than the Scribe entering an unbounded loop.


Provenance Metadata

Every delivered document includes a provenance block at the end:

---

## Provenance

- **Scribe version**: <version>
- **Document type**: [type]
- **Generated**: [timestamp]
- **Source artifacts**:
  - [list of source artifacts used, with identifiers]
- **CHT scores**: C:[N]/5 H:[N]/5 T:[N]/5
- **Coverage**: [brief assessment — what's well-covered vs gaps]
- **Flags**: [any unresolved `[GAP]` or `[DISPUTED]` markers]

Source Artifact Identifiers

Use the most specific identifier available:

Source TypeIdentifier Format
Git commitcommit:abc1234
Filefile:path/to/file.rb
Agent outputagent:[agent-name]:[task-id]
Conversationconversation:turn-[N]
External docdoc:[title-or-url]
Spec / ticketspec:[ID]
ECL envelopeecl://thread/<thread_id>/message/<message_id>

Memory Ingest (Phase G — after DELIVER)

Once the Gate decision is DELIVER (or DELIVER-with-flags after revision), persist the document handoff to CRYSTALIUM.

Ingest

If the document was handed off with an ECL sidecar envelope (*.envelope.json), ingest via:

mcp__crystalium__ingest(
  envelope = <the validated *.envelope.json contents>,
  payload  = <delivered document contents>
)

This records the document at T1 (from.eidolon=idg drives tier derivation).

If no ECL sidecar is present, commit an episodic note directly:

mcp__crystalium__commit(
  layer      = "episodic",
  payload    = <document type + CHT scores + key decisions/gaps summary>,
  provenance = { author_agent: "idg", document_type: <type> }
)

author_agent MUST be "idg" on every direct commit.

Session end

After ingest (or after delivery if CRYSTALIUM is absent), call:

mcp__crystalium__session_end()

This triggers Dream consolidation asynchronously. Call it once per IDG dispatch completion. Dream promotes corroborated episodic entries (terminology conventions, structural patterns) to the semantic layer — improving future recall quality.

Graceful skip: if mcp__crystalium__* tools are unavailable (CRYSTALIUM not installed), skip ingest and session_end and mark the Gate phase complete normally. Never hard-fail on absent CRYSTALIUM tools. IDG is EIIS-standalone-conformant.


Scribe — Verification Skill

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.