skills/docs-writer/SKILL.md
Creates and edits Dark Sky Conservation policy documentation for Maharashtra government officials and academics. Handles audience-appropriate tone, section-specific content rules (Research/Policy/Pilots), and orchestrates technical validation passes. Use when working on docs/content/ markdown files.
npx skillsauth add incubrain/foundry docs-writerInstall 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.
Documentation serves two primary audiences:
Authoritative but Accessible
Guiding, Not Assuming
Grammar and Clarity
Active Voice (85%+)
Present Tense (90%)
Use modal verbs to convey appropriate certainty and obligation:
| Verb | Meaning | Usage | Example |
|------|---------|-------|---------|
| can | Optional (40%) | Capabilities, options | "Municipalities can implement lighting curfews." |
| should | Recommended (30%) | Best practices | "Policies should prioritize ecological zones." |
| may | Possibility (20%) | Conditional outcomes | "This may reduce bird collisions." |
| must | Required (10%) | Mandatory actions | "Protected areas must limit upward light." |
Avoid weak modals: might, could, would (use sparingly, only for hypotheticals)
| Section | Current Stage | End Goal | |---------|--------------|----------| | Research | Evidence compilation | Scientific foundation for policy | | Policy | Recommendations → Refined proposals | Foundation for official policy | | Pilots | Guidelines → Standards | Adopted implementation protocols |
Language reflects stage:
Subject-First Declarative (60%)
Light pollution disrupts nocturnal ecosystems.
The UNFCCC recognizes lighting efficiency as a climate strategy.
Maharashtra's protected areas face light intrusion.
Imperative Instructions (25%)
Review the ecological impact evidence in Section 2.1.
Consider the economic burden documented by RAND Europe.
Implement shielding requirements for coastal lighting.
Contextual Openers (15%)
When protecting migratory corridors, restrict lighting to essential safety needs.
During pilot implementation, monitor sky brightness monthly.
For agricultural zones, prioritize pollinator-friendly spectrum.
Length: 2-4 sentences maximum Structure: Topic sentence first, then supporting details
Route middleware runs before navigation.
Use it to check authentication or redirect users.
Define middleware in the middleware directory.
Opening Sentences
Each docs directory MUST include a navigation.yml file with this structure:
title: 'Document Group Heading'
icon: i-lucide-icon-name
Navigation Rules:
navigation.ymlindex.md files in subdirectories (causes conflicts with navigation.yml)Example directory structure:
docs/
├── 1.getting-started/
│ ├── navigation.yml # Required
│ ├── 1.introduction.md
│ ├── 2.quickstart.md
│ └── 3.configuration.md
└── 2.content/
├── navigation.yml # Required
├── 1.overview.md
└── 2.pages.md
/docs/content/docs/1.research/)Purpose: Global scientific evidence documenting light pollution impacts
Include:
::callout{color="info"} (1-2 sentences, factual)Exclude:
Example structure:
## 2. Agricultural Impacts
Overview text without citations explaining the category.
### 2.1 Pollination
:cited[Light pollution disrupts nocturnal pollinator activity.]{#study-id} Research documents :cited[62% reduction in pollinator visits under ALAN conditions]{#another-study}.
::callout{color="info"}
Maharashtra's agricultural economy depends heavily on pollinator-dependent crops including cotton, pulses, and fruits.
::
/docs/content/docs/2.policy/)Purpose: Legal frameworks, Maharashtra obligations, action plans
Include:
Tone progression:
Example structure:
## 2. Dark Sky Zones Framework
This framework proposes classification of protected nighttime environments based on ecological sensitivity and astronomical value.
### 2.1 Zone Categories
**Tier 1: Core Dark Sky Reserves**
- Protected areas with <21.5 mag/arcsec² sky brightness
- Minimal artificial lighting permitted
- Examples: Bhimashankar Wildlife Sanctuary buffer zones
/docs/content/docs/3.pilots/)Purpose: Implementation methodology (not specific site listings)
Include:
Exclude:
Example structure:
## 2. Site Selection Methodology
Pilot zones should be selected using a multi-criteria framework balancing ecological sensitivity, astronomical potential, and implementation feasibility.
### 2.1 Selection Criteria
**Ecological Priority**
- Presence of light-sensitive species
- Proximity to protected areas
- Migratory corridor significance
Use the right component for the right purpose:
| Need | Component | When to Use | Example Context |
|------|-----------|-------------|-----------------|
| Key statistics | ::tip | Highlighting quantified findings | "Key Statistic: :cited[62% reduction in pollinator visits]{#study}" |
| Maharashtra context | ::callout{color="info"} | State-specific notes in Research | "Maharashtra Context: Western Ghats biodiversity hotspot..." |
| Background info | ::note | Supplementary context | Explaining technical terms or processes |
| Best practice | ::tip | Recommendations | Policy implementation guidance |
| Caution | ::warning | Potential issues | Implementation challenges |
| Must-know | ::important | Required actions | Mandatory compliance requirements |
| Success indicator | ::callout{color="success"} | Positive outcomes | "Dark Sky Conservation offers a 'quick win'..." |
Component Selection Guide:
::tip for key statistics, ::callout{color="info"} for Maharashtra context::important for requirements, ::tip for recommendations::warning for implementation challenges, ::tip for best practicesAlways include file paths or context:
```ts [nuxt.config.ts]
export default defineNuxtConfig({
modules: ['@nuxt/content']
})
```
```bash
npm install katex rehype-katex remark-math
```
Use tables for quantified comparisons:
| Impact Domain | Key Finding | Relevant Departments |
|---------------|-------------|---------------------|
| Ecology | 62% pollination reduction | Environment, Agriculture |
| Health | 40% CVD risk increase | Public Health |
When working on documentation:
:cited[cited text]{#id}:cited[cited text]{#id1,id2}[...] should be the fact, statistic, or source name the citation supports:cited[60% of invertebrates are nocturnal]{#holker-2010}:cited[The 2023 RAND Europe study]{#hafner-2023-insomnia-burden} quantifies...[text](internal:path):defn[term text]{#term-id}$expression$$$expression$$\$4.32 trillion$0.757\,\mathrm{tCO_2/MWh}$ALL quantitative data must come from: /Users/mac/Development/incubrain/product-validator/docs/MASTER_KEY.md
Never invent statistics. Never extrapolate data not in Master Key. If data is not available, note the research gap instead.
Voice and Clarity
Word Choice | Avoid | Use | |-------|-----| | utilize | use | | implement | add, create, establish | | leverage | use | | in order to | to | | due to the fact that | because |
Structure
Documentation-Specific
Before finalizing content:
This skill focuses on content strategy and audience. The guidelines document handles technical syntax.
testing
Perform UI/UX visual reviews and detect layout/styling bugs using annotated snapshots from agent-browser. Use when asked to "review the UI", "check for visual bugs", "screenshot this page", "compare layouts", or "test responsive design".
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.