swain-config
Installation
SKILL.md
Governance
Ensure the host project's agent context file contains the swain governance rules. This skill is idempotent — run it every session; it only writes on first use.
Session-start check
-
Detect the agent platform and locate the context file:
Platform Context file Detection Claude Code CLAUDE.md(project root)Default — use if no other platform detected Cursor .cursor/rules/swain-governance.mdc.cursor/directory exists -
Check whether governance rules are already present:
grep -l "swain governance" CLAUDE.md .cursor/rules/swain-governance.mdc 2>/dev/null