name: article-implementation description: Technical and pedagogical standards for implementing articles in Gravity. Use when asked to "build an article", "modernize content", or "audit an article".
Article Implementation Standard (The "Rich Spec")
This skill governs the transformation of a Pedagogical Blueprint into a functional, aesthetic, and interactive article.
1. Pedagogical Identity
Every article must move beyond simple facts into deep explanation.
- Narrative Depth: 600–1200 words depending on complexity.
- Self-Sustaining Sektioner: Each section should be readable in isolation, providing necessary context.
- No Assumptions: Fill in background info so the reader never feels "lost".
- Tone: Pedagogical, wondering, and explanatory.
2. Technical Structure (JSON)
Articles must follow the modern Flat Content pattern.
- Layout: Always use
"layout": "rich". - Flat Array: The
contentarray must NOT contain nestedsectionblocks with their owncontentarrays (unless required by specific legacy components). Useheader(level 2) andsubheaderto define structure. - Block Identification: Blocks use
type(modern) orname(legacy).
3. Style Guidelines
- Typography: Absolutely NO bold text (
**bold**) in body paragraphs. - Terminology: Use the Global Glossary system. Terms are automatically highlighted or can be linked via
[Term](/subject/topic/article). - Lists: Avoid "One sentence + list" patterns. Always provide an explanatory paragraph that elaborates on the points.
- Spacing: Use
headerblocks to create natural breathing room and trigger the Table of Contents.
4. Component Catalog & Usage
Choose components that underscore the pedagogical goal.
Core & Layout
WritingFix: Show "Bad vs Good" examples of analysis or writing.Comparison: Side-by-side analysis (e.g., Ideologies, Allianser).TimelineComponent: Useprops: { compact: true }inside articles.FactBox/InfoBox: For "Did you know?" or technical details.QuoteBlock: For primary sources or key citations.Gallery/MapCarousel: For visual-heavy storytelling.
Subject-Specific Tools
- History:
AllianceChain,PowderKeg,DreadnoughtDuel,TrenchCrossSection,TsarsDilemma,CensorTask,PropagandaDecoder. - Economics/Demo:
InflationCalculator,DTMSimulator,MalthusBoserupModel,PopulationPyramidBuilder. - Music:
VirtualPiano,BeatBuilder,SongwriterStudio. - Philosophy:
TrolleyProblem,FilterBubbleSim,ConformityExperiment.
5. Implementation Workflow
- Manifest: Add entry to
public/content/manifest.json. - Hero Image: Generate via
image-style-guide.mdand place in/images/lessons/. - Drafting: Build the flat JSON array using rich components.
- Glossary Scan: Run
npm run scan:conceptsto sync terms. - Timeline Sync: Ensure events are in
public/content/global-timeline.json.