agentleFS
GoldziherGoldziher/poly/skills/poly-orchestrator/SKILL.md

poly-orchestrator

Skill19 starsChanged 3 months agoMITView on GitHub

Use poly as the single lint/format gate instead of invoking ruff/oxlint/rustfmt directly — one poly.toml, poly hooks install, poly migrate, CI via the Goldziher/poly setup Action

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Treat poly as the single lint and format gate for the repository.

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md
<!-- AI-RULEZ :: GENERATED FILE — DO NOT EDIT Content-Hash: blake3:ce64425c68bd166984a77c3c6cdb8f222d917393034061549e1cecfc7db9f65e Source-Hash: blake3:82f0197f031687bab44822403a251f7c17c1b8cf7259673f61abd9f692bb9ef8 Schema-Version: v1 -->

poly as the Orchestrator

Treat poly as the single lint and format gate for the repository. Do not invoke ruff, oxlint, taplo, rumdl, or the rest directly — poly compiles them in as backends, and covers everything else via the tree-sitter generic tier, the quality metric tier, and its built-in ast-grep rule pack, behind one binary, one config, and one report.

Adopt it

  • One poly.toml. Configure every language and rule in a single per-repo file (poly.local.toml for local overrides, extends to share a base). Layering is tool default → poly's opinionated overrides → your poly.toml. In a monorepo a nested poly.toml deep-merges on top of its ancestors for the files beneath it.
  • poly migrate — absorb existing tool configs into poly.toml instead of hand-writing it. It imports ruff, typos, taplo, and markdownlint configs; there is no eslint, prettier, or pre-commit importer. The default is a dry-run report — pass --write to apply, --recurse for a monorepo, --verify to re-run poly afterwards, and --strip-superseded to also remove pyproject.toml sections for tools ruff replaces.
  • poly hooks install — wire the git-hook shims so poly runs the configured stages on every commit, replacing a .pre-commit-config.yaml. It installs the hook types your poly.toml configures; --hook-type picks specific ones and --overwrite discards a preserved legacy hook. poly hooks uninstall restores what was there before.
  • poly config show prints the effective merged config; poly config update pins a symbolic remote extends ref into poly-config.lock.
  • poly doctor reports which poly is running, every poly on PATH, and the config in effect — the first thing to run when two machines disagree.

CI

Goldziher/poly@v0 is a setup action: it installs the poly binary (with optional caching) and puts it on PATH. It does not run poly for you — invoke the commands yourself in following steps.

- uses: actions/checkout@v4
- uses: Goldziher/poly@v0        # inputs: version (default latest), cache, github-token
- run: poly fmt --check .
- run: poly lint .

poly is one pinned binary with no required system dependencies, so local, hook, and CI runs agree — with one caveat: the native-toolchain tier means rustfmt and gofmt are used automatically whenever they are on PATH, and formatting output then depends on that tool's version. A machine without them silently falls through to the lower-fidelity tree-sitter tier. Pin the Rust/Go toolchain in CI (and expect drift otherwise), or set [fmt.rust.rustfmt] enabled = false / [fmt.go.gofmt] enabled = false to stop the subprocess. That does not leave the language unformatted: rustfmt/gofmt are the one pair of backends that read enabled themselves and hand the file to the tier-2 reindenter when disabled, rather than expecting the runner to drop them from the plan — so the file is still formatted, just at lower fidelity than the native tool.

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.