creative-writing-skills
AGENTS.md503 starsChanged 3 months agoApache-2.0View on GitHub
This file provides guidance to AI Agents when working with this repository. A Mars source package providing composable creative writing agents and skills for Meridian and Claude Code. Also distributes Claude.ai skill uploads via GitHub Releases. skills/ vs cw/skills/: skills/ is the Mars source: consumed by Claude Code projects via mars add. cw/skills/ holds the Claude.ai / plugin distribution — genericized copies with Meridian-specific references removed. Edit skills/ first, then resync cw/ (see Syncing the cw/ distribution). CI fails on…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- character-simSkill
- creative-researchSkill
- creative-writing-craftSkill
- creative-writing-modesSkill
- creative-writing-museSkill
- reader-simSkill
- story-memorySkill
- story-planningSkill
- story-reviewSkill
- writing-principlesSkill
- writing-staffingSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Use explicit -C <package-root> whenever running Meridian commands for this package from an inherited Meridian environment.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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
AGENTS.md
This file provides guidance to AI Agents when working with this repository.
Repository Overview
A Mars source package providing composable creative writing agents and skills for Meridian and Claude Code. Also distributes Claude.ai skill uploads via GitHub Releases.
Key Distinctions
skills/ vs cw/skills/: skills/ is the Mars source: consumed by Claude Code projects via mars add. cw/skills/ holds the Claude.ai / plugin distribution — genericized copies with Meridian-specific references removed. Edit skills/ first, then resync cw/ (see Syncing the cw/ distribution). CI fails on drift, so this is not optional.
Agents vs skills: Agents are spawned as independent processes (orchestrators, writers, critics). Skills are reference material loaded into agent context (craft knowledge, patterns, conventions). See agents/ and skills/ directories.
Destination sync: Comes from the writing-sync Mars dependency (haowjy/writing-sync), not this repo. Do not vendor those skills here or add them to cw/ / GENERATED_SKILLS.
Package Management
This repo is both a Mars source package (publishes agents/skills) and a Mars consumer (depends on meridian-base).
meridian mars check # Validate package structure and frontmatter
meridian mars sync # Install dependencies into .agents/
meridian mars version patch # Bump version, commit, tagVersion lives in mars.toml under [package]. Tags trigger CI releases.
Version sync: mars version patch bumps mars.toml. The sync script (sync_cw_skills.py) auto-syncs the version into both .claude-plugin/marketplace.json (metadata.version) and cw/.claude-plugin/plugin.json (version), staging the files for the in-flight commit. This runs in all modes (check, lint, apply) so the pre-commit hook catches drift.
Meridian session roots: Meridian spawns resolve MERIDIAN_TASK_DIR for the
checkout where source work happens, but MERIDIAN_PROJECT_DIR stays anchored to
the session control root for state, profiles, and context. Nested
meridian ... commands use project-root resolution, so CWD alone may not target
this package. For package releases, pass the package root explicitly:
meridian -C "$PWD" mars version patch --pushUse explicit -C <package-root> whenever running Meridian commands for this
package from an inherited Meridian environment. For task checkouts, prefer
meridian -C "$MERIDIAN_TASK_DIR" ....
Syncing the cw/ distribution
cw/skills/ adapts skills/ for harnesses without Meridian (Claude.ai uploads, the Claude Code plugin). Skills split two ways:
- GENERATED — selected skills copied from a temporary Mars consumer project's
.claude/skills/. Mars performs Claude frontmatter/native lowering; the script filters the skills that belong in the cw distribution. - MANUAL — skills carrying cw-specific adaptations, cw-only behavior, or dependency changes not yet available through a released Mars dependency. Hand-maintained; the tool lints but never overwrites them.
python3 scripts/sync_cw_skills.py # full check: Mars build + drift + lint
python3 scripts/sync_cw_skills.py --lint # lint only (no Mars build); used by CI and pre-commit
python3 scripts/sync_cw_skills.py --apply # build temp Mars consumer and refresh GENERATED components
python3 scripts/sync_cw_skills.py --list # print the GENERATED/MANUAL classificationAfter editing a generated skills/<name>/SKILL.md, run --apply so Mars lowers it into the cw distribution. Adapt MANUAL skills by hand, then run the check. The sync script builds a temporary Mars consumer and may need network access to resolve git dependency tags. CI fails on generated drift, leaked Meridian vocab in cw/, or dangling skill/agent references. cw frontmatter is Claude vocab (name + description, plus Claude-native flags such as disable-model-invocation when Mars lowers model-invocable: false) — never Mars type/model-invocable/effort.
creative-writing-muse: source lives in skills/creative-writing-muse and is generated into cw/skills/creative-writing-muse. It is a user-activated, single-agent muse mode for skills-only environments; the muse agents do not load it. The agents follow the Product Lead pattern directly: capture author intent, craft specialist prompts, route work, synthesize results, and speak back to the author.
Plugin manifest: cw/.claude-plugin/plugin.json is required. Claude Code auto-discovers components without it, but the marketplace add-from-GitHub path (Cowork / claude.ai) validates the plugin and rejects it if the manifest is missing. claude plugins validate .claude-plugin/marketplace.json only checks the marketplace schema, not the plugin — so CI also runs claude plugins validate cw, which validates the manifest plus every agent/skill component file.
Slash Commands
| Command | Skill |
/bs | story-planning |
/write [style] | creative-writing-modes |
/wiki | kb-management |
/critique | story-review |
Design Patterns
Source tagging (brainstorming): Untagged = user stated. <AI>...</AI> = AI suggestion. <hidden>...</hidden> = author-only (twists, secrets).
Citations (kb-management): Chapter references (Chapter 3: Scene where X discovers Y) and document references (magic-system.md).
Style guides: Directive AI instructions, not human documentation. Imperative form + examples.
Development
Build Claude.ai zips: python3 scripts/create_skill_zips.py → zips/*.skill
Validate package: meridian mars check
Validate plugin manifest: claude plugins validate .claude-plugin/marketplace.json (marketplace schema) and claude plugins validate cw (cw plugin manifest + components)
Release flow: Bump version in mars.toml → commit → tag vX.Y.Z → push tag → CI creates GitHub Release with .skill artifacts.
Pre-commit hook: .githooks/pre-commit front-loads the distribution-breaking checks (cw skill sync + claude plugins validate cw) so they fire at commit time instead of only in CI. It's committed but not auto-installed — enable it once per clone:
git config core.hooksPath .githooksIt blocks the commit on failure; bypass a single commit with git commit --no-verify. (Skips plugin validation if the claude CLI isn't on PATH.)
CI: PRs run mars check + marketplace/plugin validation (claude plugins validate) + frontmatter validation + sync_cw_skills.py drift check + zip build. Tag pushes create releases.
Conventions
- Each skill's
SKILL.mduses YAML frontmatter withnameanddescription - Skills are self-contained: no cross-skill dependencies
- Agent profiles declare their skills in the
skills:frontmatter array - Generated directories (
.agents/,.mars/,.meridian/) are gitignored
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.

