claude-forge-smith / tests
AGENTS.md2 starsChanged 10 months agoMITView on GitHub
Comprehensive test suite organized in a 3-tier structure: unit tests, integration tests, and end-to-end tests. All tests are written in Bash and use assertion patterns for validation.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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.
- AGENTS.mdAGENTS.md
- .claude-plugin/AGENTS.mdAGENTS.md
- config/AGENTS.mdAGENTS.md
- data/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/ISSUE_TEMPLATE/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
All tests use Bash with assertion helper patterns
- Very specific: line 26
Use assert_equals, assert_contains patterns
- Very specific: line 31
Run unit tests first: bash tests/unit/*.test.sh
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
<!-- Parent: ../AGENTS.md --><!-- Generated: 2026-02-08 | Updated: 2026-02-08 -->tests
Purpose
Comprehensive test suite organized in a 3-tier structure: unit tests, integration tests, and end-to-end tests. All tests are written in Bash and use assertion patterns for validation.
Subdirectories
| Directory | Purpose |
unit/ | Unit tests for individual library functions (see unit/AGENTS.md) |
integration/ | Integration tests for hook and skill workflows (see integration/AGENTS.md) |
e2e/ | End-to-end tests for complete forge workflows (see e2e/AGENTS.md) |
fixtures/ | Test data and sample files (see fixtures/AGENTS.md) |
mocks/ | Mock implementations for isolated testing (see mocks/AGENTS.md) |
For AI Agents
Working In This Directory
- All tests use Bash with assertion helper patterns
- Tests are tiered: unit → integration → e2e (CI runs in this order)
- Use
assert_equals,assert_containspatterns - Tests exit with code 0 on success, non-zero on failure
Testing Requirements
- Run unit tests first:
bash tests/unit/*.test.sh - Then integration:
bash tests/integration/*.test.sh - Then e2e (requires git config):
bash tests/e2e/*.test.sh - E2E tests need
FORGE_EVALUATOR_CMDset to mock evaluator
Common Patterns
#!/bin/bash
# Test file naming: {module}-{type}.test.sh
PASS=0; FAIL=0
assert_equals() { ... }
# ... test cases ...
echo "Results: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ] || exit 1Dependencies
Internal
../hooks/lib/- Libraries under testmocks/- Mock evaluator for E2E tests
External
bc- Required for statistics testsjq- Required for JSON processing testsgit- Required for trial branch E2E tests
<!-- MANUAL: -->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.

