idg-composition
Skill2 starsChanged 5 months agoMITView on GitHub
Governs how the Scribe transforms context into structured, grounded prose during the Draft phase. Use when starting any document composition, loading templates, applying structural markers, or writing section by section with topological ordering and envelope-aware intake.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Rynaro/magicitetheir own version, first seen Sep 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Rynaro/magicite★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- atlas-abstractSkill
- atlas-esl-hopSkill
- atlas-locateSkill
- atlas-rescoutSkill
- atlas-scatterSkill
- atlas-synthesizeSkill
- atlas-traverseSkill
- atlas-verify-incomingSkill
- forge-checker-handoffSkill
- forge-deliberationSkill
- forge-framingSkill
- forge-self-consistencySkill
- forge-verificationSkill
- forge-verify-incomingSkill
- gilgamesh-attestSkill
- gilgamesh-esl-hopSkill
- gilgamesh-gaugeSkill
- gilgamesh-grindSkill
- gilgamesh-verify-incomingSkill
- idg-esl-hopSkill
- idg-section-parallelSkill
- idg-verificationSkill
- idg-verify-incomingSkill
- kupo-esl-hopSkill
- kupo-keep-or-kickSkill
- kupo-patch-verifySkill
- kupo-verify-incomingSkill
- ramza-criticSkill
- ramza-discoverSkill
- ramza-esl-hopSkill
- ramza-methodologySkill
- ramza-parallel-specSkill
- ramza-verify-incomingSkill
- vigil-esl-hopSkill
- vigil-graphSkill
- vigil-interveneSkill
- vigil-isolateSkill
- vigil-learnSkill
- vigil-verify-incomingSkill
- vigil-verifySkill
- vivi-context-engineeringSkill
- vivi-esl-hopSkill
- vivi-failure-recoverySkill
- vivi-loop-nativeSkill
- vivi-memory-managementSkill
- vivi-methodologySkill
- vivi-parallel-tracksSkill
- vivi-verify-incomingSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Graceful skip: if mcp__crystalium__* tools are unavailable (CRYSTALIUM not installed), proceed without memory — never hard-fail.
- Very specific: line 49
Look for a file whose name is <payload-basename>.envelope.json in the same location as the payload.
- Distinctive: line 54
If no sidecar is found, proceed normally.
- Distinctive: line 89
Write one section at a time, in topological order.
- Distinctive: line 104
Write sections that establish context before sections that depend on it:
- Distinctive: line 110
If sections have no dependency relationship, write them in the template's default order.
- Distinctive: line 191
Before moving to the next section, verify:
≈ “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.
Files
Composition Methodology
Loaded during the Draft phase. Governs how the Scribe transforms context into structured prose.
When to use
Load this skill when entering the Draft (D) phase of the IDG cycle — specifically when beginning any document composition (session-chronicle, ADR, runbook, change-narrative, or custom). Also load it when applying structural markers, building section skeletons from templates, or checking ECL envelope sidecars during intake. Do NOT load upfront; trigger on demand at Draft entry.
Memory Recall (Phase I — intake entry)
At the start of Phase I, before classifying the source artefact, execute:
mcp__crystalium__recall(
scope = { project: <cwd-project>, agent_class_visibility: "idg" },
query = <document type + source artifact summary + objective>,
k = 5,
layers = ["semantic", "episodic", "procedural"]
)Fold any relevant hits (prior terminology conventions, document patterns, structural decisions for this project) into intake context before building the document skeleton. The semantic layer is especially valuable for IDG: promoted conventions from past chronicles sharpen terminology consistency across documents.
Graceful skip: if mcp__crystalium__* tools are unavailable (CRYSTALIUM not
installed), proceed without memory — never hard-fail. IDG is EIIS-standalone-
conformant and works without CRYSTALIUM.
Envelope-Aware Intake (ECL v2.0)
When classifying a source artefact during the I — Intake phase, check whether the artefact arrived with an ECL sidecar envelope. The four steps below keep the same intake numbering IDG has always used — but validation, integrity, and contract-conformance checks are no longer re-implemented here. They are a single blocking gate owned by skills/verify-incoming.md (ECL §6.2.2, converged with the canonical shape (Kupo reference implementation)) — one gate, not two.
Step 1 — Detect
Look for a file whose name is <payload-basename>.envelope.json in the same location as the payload. Examples:
- Payload:
apivr-completion-report.md→ Sidecar:apivr-completion-report.md.envelope.json - Payload:
root-cause-report.md→ Sidecar:root-cause-report.md.envelope.json
If no sidecar is found, proceed normally. In the provenance block note: "no envelope; ECL verification skipped." No CHT score impact.
Step 2 — Validate
Schema validation of the sidecar against the vendored ECL v2.0 envelope schema (schemas/ecl-envelope.v2.json; schemas/ecl-envelope.v1.json retained for the ECL §7.3 compatibility window) is owned by skills/verify-incoming.md. Load it now — do not validate the sidecar inline here.
Step 3 — Recompute and compare sha256
sha256 recomputation against envelope.integrity.value is likewise owned by skills/verify-incoming.md. A mismatch is a blocking REFUSE at the gate, not a local [DISPUTED] marker — Draft-phase composition never sees a payload whose integrity hasn't already been confirmed.
Step 4 — Check performative
Performative and artifact.kind conformance against the declared inbound edge (contracts/<from>-to-idg.yaml) is validated by skills/verify-incoming.md. An out-of-contract hand-off is refused at the gate before Intake classification begins — it never reaches this step as a live payload.
Record and trace
Once skills/verify-incoming.md has recorded verify_pass (a failed gate refuses before Intake starts, so verify_fail never reaches this point), carry its outcome into working memory:
ecl_verification:
message_id: <uuid>
thread_id: <uuid>
from: <eidolon slug>
performative: <value>
outcome: verify_pass | skippedThis record surfaces in the Gate phase and populates the chronicle's Communication Lineage section and provenance block. If the verified envelope carries ise.assertion_grade (ECL v2.0 §6.5), surface it alongside — the provenance block should let the reader distinguish upstream work that was mechanically validated from work that was only self-attested. See skills/verify-incoming.md.
IDG does not, and shall not, fetch any envelope referenced via input_handles. P0 forbids retrieval. If a handle resolves to a path already in-context (the requester has explicitly provided the file), reading it is permitted. Otherwise mark [GAP].
Section-Level Composition
Write one section at a time, in topological order. For each section:
- Scope the section — what question does this section answer for the reader?
- Select context — pull only the source material relevant to this section. Discard the rest for now.
- Draft — write the section. Ground every claim.
- Cite — tag each factual statement with its source artifact (inline or footnote, per template convention).
- Mark — apply structural markers where appropriate.
- Transition — write the bridge to the next section if the document type requires narrative flow.
Context Budget Rule
When composing a section, keep injected context to the minimum necessary. If the full source material for a section exceeds ~2,000 tokens, summarize the supporting evidence and keep the original references as citations. This preserves working space for the model to reason about composition rather than drowning in raw material.
Topological Section Order
Write sections that establish context before sections that depend on it:
- Background/Context → Decisions → Consequences
- Problem Statement → Steps Taken → Outcomes → Lessons
- Summary → Details → Follow-ups
If sections have no dependency relationship, write them in the template's default order.
Structural Markers Reference
Markers are the Scribe's primary value-add. They transform passive documentation into actionable intelligence.
[DECISION]
A choice was made. Always include:
- What was decided
- Why (rationale, even if brief)
- Alternatives rejected (if available in source material;
[GAP]if not)
[DECISION] Adopted Redis for session caching over Memcached.
Rationale: Redis supports data structures needed for rate-limiting (sorted sets).
Rejected: Memcached (no sorted sets), DynamoDB (latency budget exceeded).[ACTION]
Something needs to happen. Include:
- What needs doing
- Owner (if known;
TBDif not) - Deadline or trigger (if known)
[ACTION] Update Terraform modules to provision Redis cluster. Owner: Platform team. Trigger: Before Sprint 14 deployment.[DISPUTED]
Source material conflicts. Present both sides neutrally:
[DISPUTED] Load test results disagree on p99 latency.
- Agent A's benchmark: 12ms p99 under 10k RPS
- Manual test by engineer: 45ms p99 under 8k RPS
Resolution: Not yet determined. Recommend re-running with standardized methodology.[GAP]
Expected information is missing from provided context:
[GAP] Rollback procedure not documented in session artifacts. Requested from Ops team.Writing Standards
Grounding Rules
| Rule | Detail |
| No unsourced claims | Every factual assertion must trace to a specific source artifact |
| Distinguish inference from fact | If the Scribe infers something (e.g., likely rationale for a decision), prefix with "Likely:" or "Inferred:" |
| Preserve source fidelity | Do not editorialize or interpret beyond what sources support |
| Quote sparingly | Paraphrase unless exact wording is load-bearing (error messages, commit messages, CLI output) |
Audience Adaptation
| Audience | Depth | Jargon | Examples |
| Engineers on the team | Full technical depth | Domain terms OK without definition | Code snippets, file paths, CLI commands |
| Engineering leadership | Architectural level | Define non-obvious acronyms | Diagrams, trade-off summaries, impact statements |
| Cross-functional | Business outcomes | Minimal jargon, explain technical terms | User-facing impact, timelines, risk levels |
Determine audience from the document type default or explicit instruction. When uncertain, default to "Engineers on the team."
Tone
- Active voice preferred ("The team decided..." not "It was decided...")
- Concrete over abstract ("Added 3 retry attempts with exponential backoff" not "Improved error handling")
- Terse over verbose — every sentence should earn its place
- No hedging without cause — "The migration completed successfully" not "The migration appears to have completed successfully" (unless completion is genuinely uncertain)
Section Composition Checklist
Before moving to the next section, verify:
- Section answers the question it was scoped to answer
- Every factual claim has a source citation
- Structural markers applied where appropriate
- Tone matches audience level
- No information fabricated or assumed without marking
- Transition to next section is clear (if applicable)
Scribe — Composition Skill
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
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.

