sx
AGENTS.md312 starsChanged 4 months agoApache-2.0View on GitHub
Your team's private npm for AI assets - skills, MCP configs, commands, and more. ALWAYS run make prepush before claiming a task is finished. CI runs format, lint, tests, and build — if any of those fail locally, don't tell the user the work is done. After making code changes, build and test with: - Format: gofmt - Lint: golangci-lint - Tests must pass with race detection - Keep the commit subject line ≤ 72 characters (the pr-check/sleuth status enforces…
- Commits and pushes
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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
After making code changes, build and test with:
- Very specific: line 65
Keep code comments to the density of the surrounding code.
≈ “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
sx - Coding Agent Guide
Your team's private npm for AI assets - skills, MCP configs, commands, and more.
Quick Commands
make build # Build binary to ./dist/sx
make test # Run tests
make format # Format code
make lint # Run linter
make prepush # Format + lint + test + build (run before claiming done)Before Reporting Work Complete
ALWAYS run make prepush before claiming a task is finished. CI runs
format, lint, tests, and build — if any of those fail locally, don't
tell the user the work is done.
Testing Local Changes
After making code changes, build and test with:
make build && ./dist/sx <command>Tech Stack
- Go 1.25+
- cobra (CLI framework)
- TOML (config format)
Key Specifications
- Vault Spec - Vault structure and management
- Manifest Spec - sx.toml format (source of truth)
- Lock Spec - Per-user resolved lock file format
- Scoping - Overview of every install scope (org/repo/path/team/user/bot), links to per-scope docs
- Permissions / RBAC - github vault: who can set scope (org-admins) and who can edit a skill (team-scope membership)
- Vault copy -
sx vault copycross-vault migration (assets, teams, bots, scopes, audit, usage) - Synced folders - Shared path vaults inside Dropbox/Drive/OneDrive/iCloud folders
- Plugins - Exposing vaults as Claude Code / Codex plugin marketplaces
- Orgs - Org-scoped (global) installs
- Repos - Repo and path-scoped installs (monorepo patterns)
- Teams - Team management and team-scoped installs
- Users - Single-user installs and self-only restriction
- Bots - Bot identities and bot-scoped installs
- Audit log - Mutation audit trail format and queries
- Usage analytics -
sx statsdashboard and event format - Metadata Spec - Asset metadata format and fields
- MCP Spec - MCP server tools (query)
- Environment Variables - SX_CONFIG_DIR, SX_CACHE_DIR, and isolation recipes
- GitHub Actions - Installing from a private vault in CI (deploy keys, SX_SSH_KEY, SX_BOT)
Development
- Format:
gofmt - Lint:
golangci-lint - Tests must pass with race detection
- Keep the commit subject line ≤ 72 characters (the
pr-check/sleuthstatus enforces this maximum subject length and blocks the PR when it is longer). Put detail in the body, not the subject. - Keep code comments to the density of the surrounding code. Design rationale,
cross-client comparisons, and rejected alternatives belong in the PR
description, not hanging off a
constor a one-line helper. - NEVER run
git pushwithout explicit user permission
Releases
Tag and push to trigger automated release:
git tag v0.1.0
git push origin v0.1.0GoReleaser builds for Linux/macOS/Windows and auto-generates changelog.
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.

