agentic-loop
CLAUDE.md38 starsChanged 9 months agoMITView on GitHub
In this repository15 other files it gives its agents.
- colorSkill
- commitSkill
- explainSkill
- lessonSkill
- loopgramSkill
- my-dnaSkill
- prd-checkSkill
- prdSkill
- reviewSkill
- setup-reviewSkill
- styleguideSkill
- tourSkill
- vibe-checkSkill
- vibe-helpSkill
- vibe-listSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 2 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Always use shellcheck directive: # shellcheck shell=bash
- Very specific: line 31
Use [[ ]] for conditionals, not [ ]
- Very specific: line 32
Use local for function variables
- Very specific: line 33
Prefer $(command) over backticks
- Very specific: line 34
Use constants from utils.sh instead of magic numbers
- Distinctive: line 38
Always clean up temp files on error paths
- Very specific: line 61
Use get_config for reading config values with defaults
- Very specific: line 62
Use create_temp_file for temp files (auto-cleanup)
- Very specific: line 63
Use safe_exec for running external commands
- Very specific: line 64
Use log_progress for audit trail
- Very specific: line 65
Use centralized constants from utils.sh for timeouts, limits, etc.
- Distinctive: line 68
Never store credentials in plain text if avoidable — prefer env vars
- Very specific: line 69
Use validate_command() for any user-provided commands
≈ “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.
Files
Claude Code Instructions for agentic-loop
Project Overview
Ralph is an autonomous AI development loop written in Bash. It orchestrates Claude CLI for automated development workflows including code generation, verification, and testing.
Naming Conventions
Bash (ralph/*.sh)
- Functions:
snake_case— e.g.,run_verification,parse_endpoint,get_config - Local variables:
snake_case— e.g.,story_id,base_url,failed - Constants:
SCREAMING_SNAKE— e.g.,MAX_LOG_LINES,DEFAULT_TIMEOUT_SECONDS - Global state variables:
SCREAMING_SNAKE— e.g.,RALPH_DIR,BACKUP_QUIET - Private/helper functions:
_prefixed_snake_case— e.g.,_inject_story_context
TypeScript/JavaScript (src/, tests/)
- Functions/methods:
camelCase— e.g.,runCheck,parseFile - Variables:
camelCase— e.g.,fileName,isValid - Constants:
SCREAMING_SNAKEorcamelCase— follow existing file patterns - Classes/Types:
PascalCase— e.g.,CheckResult,FileReader
File Names
- Bash scripts:
kebab-case.shorsnake_case.sh(match existing pattern in directory) - TypeScript:
kebab-case.ts— e.g.,check-secrets.ts - Test files:
*.test.ts
Code Style
Bash
- Always use
shellcheckdirective:# shellcheck shell=bash - Quote all variables:
"$var"not$var - Use
[[ ]]for conditionals, not[ ] - Use
localfor function variables - Prefer
$(command)over backticks - Use constants from
utils.shinstead of magic numbers
Error Handling
- Bash: Check return values, use
|| return 1pattern - Always clean up temp files on error paths
- Log failures to progress file for debugging
Architecture
Ralph Module Structure
ralph/
utils.sh # Shared constants and utilities (source first)
loop.sh # Main autonomous loop
prd-check.sh # PRD validation before loop starts
code-check.sh # Code verification after Claude writes
verify/ # Verification submodules for code-check.sh
lint.sh # Linting/auto-fix
tests.sh # Unit tests
api.sh # API/frontend smoke tests
backup.sh # Database backup/restore
init.sh # Project initialization
prd.sh # PRD generation
lessons.sh # Learned patternsKey Patterns
- Use
get_configfor reading config values with defaults - Use
create_temp_filefor temp files (auto-cleanup) - Use
safe_execfor running external commands - Use
log_progressfor audit trail - Use centralized constants from
utils.shfor timeouts, limits, etc.
Security
- Never store credentials in plain text if avoidable — prefer env vars
- Use
validate_command()for any user-provided commands - Escape strings before embedding in AppleScript/SQL/etc.
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.

