agentleFS
udaysharmadevudaysharmadev/Gravitas/CLAUDE.md

Gravitas

CLAUDE.md445 starsChanged 56 days agoMITView on GitHub

When executing coding tasks, follow the GRAVITAS protocol defined below. This file activates GRAVITAS for all Claude Code sessions in this project. GRAVITAS enforces 6 invariants (canonical: skills/gravitas/SKILL.md): One rule above all: Report what actually happened, not what you intended. When you say something is done — that claim rests on output you observed. If you did not check, say you did not check. Planning is conditional (gravitas decide --signals '{...}'): direct / compact / deep / replan. Classify UP…

The file

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When executing coding tasks, follow the GRAVITAS protocol defined below.

    line 3
  2. Distinctive:

    When you say something is done — that claim rests on output you observed.

    line 20
  3. Distinctive:

    If you did not check, say you did not check.

    line 21
  4. Very specific:

    Use GRAVITAS_MEMORY.md for cross-session context:

    line 49
  5. Very specific:

    Check for SESSION_FAILURES.md before retrying any approach.

    line 60
  6. Distinctive:

    Every task ends with a machine-readable verdict:

    line 66
  7. Distinctive:

    Run the full chain:

    line 78
  8. Distinctive:

    Ask "Want me to proceed?" — proceed on reversible actions

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

GRAVITAS — Claude Code Integration

When executing coding tasks, follow the GRAVITAS protocol defined below. This file activates GRAVITAS for all Claude Code sessions in this project.


Core Protocol

GRAVITAS enforces 6 invariants (canonical: skills/gravitas/SKILL.md):

  1. Ground before mutating — read the target file + imports + tests before any edit
  2. Stay in declared scope — writes outside allowed_write_scope are denied
  3. Completion needs evidence — fresh Gravitas-owned validator PASS only
  4. Never exact-retry a failure — change diagnosis, context, or strategy first
  5. Satisfy the contract — acceptance criteria + required validators gate completion
  6. Say what you can't verify — mark uncertain claims explicitly

One rule above all: Report what actually happened, not what you intended. When you say something is done — that claim rests on output you observed. If you did not check, say you did not check.


Tier Classification

Planning is conditional (gravitas decide --signals '{...}'): direct / compact / deep / replan. Classify UP when uncertain. Full policy: skills/gravitas/SKILL.md (canonical).


Recon Checklist (before any edit)

Run in parallel:

□ Read the target file — full content
□ Read files it imports / that import it
□ Read the test file
□ Check config (tsconfig, pyproject, etc.)
□ git log --oneline -5 -- [target]
□ git diff HEAD -- [target]

Memory

Use GRAVITAS_MEMORY.md for cross-session context:

---
type: user | feedback | project | reference
name: short-kebab-slug
description: one-line summary
---
[The fact. Why it matters. How to apply it.]

Check for SESSION_FAILURES.md before retrying any approach.


Verification

Every task ends with a machine-readable verdict:

VERDICT: PASS
Tests: 47/47 | Lint: clean | Types: clean

— or —

VERDICT: FAIL
[failing test output verbatim]

Run the full chain:

# TypeScript
tsc --noEmit && eslint . --max-warnings 0 && vitest run

# Python
mypy . && ruff check . && pytest

# Rust
cargo check && cargo clippy -- -D warnings && cargo test

# Go
go vet ./... && go test ./...

Output Format

Every non-trivial response:

## What Changed
[files, lines, behavior]

## Evidence
[verbatim command output]

## Why
[key decision rationale]

VERDICT: PASS

Anti-Patterns

Never:

  • Say "this should work" — verify or say "I cannot verify"
  • Edit a file without reading it first
  • Claim tests pass without showing output
  • Retry an approach already in SESSION_FAILURES.md
  • Lead with "Great question!" or "I'd be happy to..."
  • Ask "Want me to proceed?" — proceed on reversible actions

Subagents

When spawning subagents:

AgentRoleTools
ExploreRead-only reconRead, Search, Git
PlanAdversarial planningRead only
GeneralFull implementationAll
VerifyVERDICT engineRead, Run

Batch independent spawns in parallel. Never sequential when parallel is possible.


Full Gravitas skill: skills/gravitas/SKILL.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.