agentleFS
castle-xcastle-x/skills-x/AGENTS.md

skills-x

AGENTS.md18 starsChanged 8 months agoMITView on GitHub

Keep new logic in pkg/ when reusable, and in cmd/skills-x/command/... when command-specific.

The file

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

8 rules. About 0 are common, 1 is distinctive, and 7 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.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Keep new logic in pkg/ when reusable, and in cmd/skills-x/command/...

    line 13
  2. Very specific:

    Follow idiomatic Go; format with gofmt before committing.

    line 25
  3. Very specific:

    Use short, lowercase package names (pkg/versioncheck, pkg/gitutil).

    line 26
  4. Very specific:

    Keep command files action-oriented (init.go, update.go, list.go).

    line 27
  5. Very specific:

    Run make test before opening a PR.

    line 33
  6. Very specific:

    Prefer focused unit tests for parsing/validation/registry behavior, then command-level tests for CLI flows.

    line 34
  7. Very specific:

    Use <type>: <imperative summary>.

    line 40
  8. Distinctive:

    Add screenshots/GIFs for TUI changes and note any i18n or registry data updates explicitly.

    line 42

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

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

Repository Guidelines

Project Structure & Module Organization

skills-x is a Go CLI with an interactive TUI plus bundled skill assets.

  • cmd/skills-x/: CLI entrypoint, Cobra commands, TUI models/views, and i18n wiring.
  • pkg/: reusable packages (registry, discover, gitutil, skillvalidator, userregistry, etc.).
  • skills/: embedded first-party skills shipped with the binary.
  • docs/: user and contributor docs (for example docs/tui-guide.md).
  • npm/: npm wrapper and installer (npm/install.js, package metadata).
  • bin/: build outputs (generated).

Keep new logic in pkg/ when reusable, and in cmd/skills-x/command/... when command-specific.

Build, Test, and Development Commands

  • make build: syncs skills/ into embed path and builds bin/skills-x.
  • make run ARGS="list": build and run with CLI arguments.
  • make test: run all Go tests (go test -v ./...).
  • make build-local: Linux amd64 local build including local_skills/.
  • make build-all: cross-platform binaries in bin/.
  • make build-npm: cross-platform release binaries for npm in npm/bin/.
  • make deps: download and tidy Go modules.

Coding Style & Naming Conventions

  • Follow idiomatic Go; format with gofmt before committing.
  • Use short, lowercase package names (pkg/versioncheck, pkg/gitutil).
  • Keep command files action-oriented (init.go, update.go, list.go).
  • Tests live next to code as *_test.go, with table-driven style where practical.
  • For locale keys (cmd/skills-x/i18n/locales/*.yaml), use stable snake_case identifiers.

Testing Guidelines

  • Primary framework: Go testing package.
  • Run make test before opening a PR.
  • Prefer focused unit tests for parsing/validation/registry behavior, then command-level tests for CLI flows.
  • Name tests descriptively, e.g. TestRunAPIGenerate, TestValidateSkillPath.

Commit & Pull Request Guidelines

Recent history follows Conventional Commit style: feat:, fix:, docs:, chore: (example: fix: starred skills not sorted on initial load in TUI LV3).

  • Use <type>: <imperative summary>; keep subject concise and specific.
  • PRs should include: purpose, key changes, test evidence (make test output summary), and linked issues.
  • Add screenshots/GIFs for TUI changes and note any i18n or registry data updates explicitly.

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.