Skip to content
Skills Library
AI & agents · Planning

constitution

/constitution

Draft a ralph constitution — a markdown spec describing a desired state for autonomous iteration. Study the problem space, shape the spec interactively, then launch the ralph loop. Use for any work where adaptation matters more than a fixed plan: science, refactoring, exploration, creative work. Triggers: "constitution", "constitute", "ralph spec", "set up a ralph", "create a ralph", "write a spec".

Repository
skills ↗
Licence
Apache-2.0
Last repository change
30.05.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.05.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Draft a ralph constitution — a markdown spec describing a desired state for autonomous iteration. Study the problem space, shape the spec interactively, then launch the ralph loop. Use for any work where adaptation matters more than a fixed plan: science, refactoring, exploration, creative work. Triggers: "constitution", "constitute", "ralph spec", "set up a ralph", "create a ralph", "write a spec".

Triggers from the description

constitutionconstituteralph specset up a ralphcreate a ralphwrite a spec
Original author description

Draft a ralph constitution — a markdown spec describing a desired state for autonomous iteration. Study the problem space, shape the spec interactively, then launch the ralph loop. Use for any work where adaptation matters more than a fixed plan: science, refactoring, exploration, creative work. Triggers: "constitution", "constitute", "ralph spec", "set up a ralph", "create a ralph", "write a spec".

How it works

  1. Workflow
  2. What Goes in a Spec
  3. Principles
  4. Specs That Shape Artifacts
  5. Anti-patterns
Original SKILL.md headings · 83 lines, 702 words
SKILL.md preview
---
name: constitution
description: >
  Draft a ralph constitution — a markdown spec describing a desired state for
  autonomous iteration. Study the problem space, shape the spec interactively,
  then launch the ralph loop. Use for any work where adaptation matters more
  than a fixed plan: science, refactoring, exploration, creative work.
  Triggers: "constitution", "constitute", "ralph spec", "set up a ralph",
  "create a ralph", "write a spec".
---

# Constitution

A constitution is a design document with trust built in. Like a governmental constitution, it lays out principles and aspirations — not specific laws, not the current state of affairs. It's designed to outlast any single agent or iteration and remain valid as the world changes around it. A good constitution never says "50 files remain" because that's a snapshot that goes stale; it says "check `grep -r 'old_pattern'`" because that's a principle that stays true until the work is done.

Constitutions don't prescribe steps. They describe what the system looks like when it's right — the desired state, in both senses of the word. Nothing in the constitution should become confusing or unnecessary as the desired state is reached. Whoever works from it surveys reality, reasons about the gap, and decides what's highest value. In a ralph loop, each iteration does this with fresh context.

This matters most in science and exploratory work, where each decision is informed by the result just before it. A plan assumes you know the path; a constitution trusts the agent to find it — with taste, judgment, and fresh eyes each time.

**Separation of context: if you craft, you never do the work yourself.**

## Workflow

1. **Study** — Read relevant files, understand existing patterns. This informs the *spec*, not implementation. The goal is pointers that iterations will follow.

2. **Draft** — Create a markdown spec file using the template:
   ```bash
   cp <base>/assets/spec.md my-spec.md
   ```
   Fill in what you can — don't wait until it's perfect.

3. **Refine** — Show the draft, get feedback, revise. Use AskUserQuestion for structured choices. Repeat until it feels solid.

4. **Launch** — When approved:
   ```bash
   <base>/scripts/ralph <spec.md> [--backend claude|codex] [-- extra-flags...]
   ```
   Add `-- --chrome` for visual/frontend work.

Session: `ralph-<spec-name>`. Attach: `tmux attach -t ralph-<spec-name>`.

## What Goes in a Spec

A spec needs enough structure that an iteration landing cold can orient itself, and enough freedom that it can adapt. Common sections — use what fits, skip what doesn't, add what's missing:

```markdown
## Desired State
What the system looks like when it's done. Invariants, quality bar,
done-conditions. Fence the scope — what to aim for AND what to leave alone.

## Context
File paths, existing patterns, architectural constraints. Things iterations
need to *find* but not *achieve*.

## Skills
Which skills to activate before working (e.g., /snakemake).

## Evidence
How to check progress — commands, test suites, grep patterns. Pointers to
the ground truth that iterations measure themselves against.

## Open Questions
Uncertainties the user should weigh in on. Iterations add to this; the user
resolves between loops.
```

## Principles

**Constitution, not plan.** Say what the system looks like when it's right. Never describe the current state — anything that becomes false or irrelevant as work progresses doesn't belong. If a section would be outdated after one iteration, it's a snapshot — replace it with a pointer.

**Pointers, not snapshots.** "Check `grep -r 'old_pattern'`" not "50 files remain." Snapshots go stale; pointers stay valid across iterations. This is the constitutional principle: write what remains true until the work is done.

**Prefer existing systems.** Before designing anything new: can what's there handle this?

**Constraints need reasons.** Bare constraints get creatively circumvented. Include enough *why* that an iteration knows when it applies.

**Scope is a gift.** A clear fence — "only rename, don't refactor" — saves iterations from well-intentioned drift. Explicit scope frees the agent to work confidently within it.

## Specs That Shape Artifacts

Some specs don't build code — they shape artifacts like documentation, dashboards, or research narratives. These have different rhythms:

- **The desired state is comprehension, not correctness.** "A reviewer can follow the narrative cold" is harder to test than "all tests pass" — but it's the right bar. Evidence for progress: fewer redundant plots, clearer prose, more natural flow.
- **The artifact continues to grow.** Unlike a refactoring (which finishes), a research narrative keeps acquiring nodes. The spec shapes how growth presents itself, not when growth stops.

## Anti-patterns

**Checklists.** "1. Add X, 2. Add Y" — iterations race through without judgment.

**Vague done.** "Make it better" — when does iteration stop?

**Over-specification.** Prescribing *how* instead of *what*. Trust the agent's taste.

Versions

RepositoryScoreLicence
This page · cailmdaley/skills100Apache-2.0
ericrisco/rsc-harness100MIT
tansuasici/claude-code-kit100MIT
mehrad-dm/mastermind100MIT

Database snapshot: 13.11.2026 · package version 83c344baac02 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100ralph
    This skill should be used when the user wants to set up an autonomous coding loop, plan a Ralph loop, prepare for headless Claude execution, create a spec and implementation plan for autonomous coding, or run an autonomous development workflow. Trigger phrases include "ralph",…
  • 100ralph-expert
    Build and launch well-structured Ralph Loop commands from a user's task description. Use when the user says "ralph this", "loop this until done", "set up a ralph", "run this iteratively", invokes `/ralph-expert`, or hands over a vague goal that needs to become an iterative loop…
  • 100ralph-tasks
    Convert PRDs in markdown files or text to prd.json format for the Ralph autonomous agent system. Use when you have an existing PRD and need to convert it to Ralph's JSON format. Triggers on: convert this prd, turn this into ralph format, create prd.json from this, ralph json.
  • 95ralph-loop-init
    Transform approved plans into ralph loop infrastructure. Triggers on: '/ralph-loop-init', '/ralph-init', 'setup ralph loop', 'generate ralph loop'. Creates .ralph/ directory with prd.json, loop.py, CLAUDE.md, and supporting files.
  • 100flux-ralph-init
    Scaffold repo-local Ralph autonomous harness under scripts/ralph/. Use when user runs /flux:ralph-init.
  • 100ralph-new
    Set up a new ralph loop (ralph-harness) on a repository. Asks the user how it should run (where the work lands, auto-merge of its pull request, the verify gate, the reviewer, when it stops, model, plan mode, hours, notifications) and what every result must pass or never include…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.