RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/openclaw/openclaw

AGENTS.md

scripts/AGENTS.md
AGENTS.md

Quality

83/100

Scores the file, not the repository.

Length

523 words

6 headings · 0 code blocks

Repository

385k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
openclaw/openclaw/scripts/AGENTS.mdRawGitHub
1# Scripts Guide
2 
3This directory owns local tooling, script wrappers, and generated-artifact helper rules.
4 
5## Wrapper Rules
6 
7- Prefer existing wrappers over raw tool entrypoints when the repo already has a curated seam.
8- For tests, prefer `scripts/run-vitest.mjs` or the root `pnpm test ...` entrypoints over raw `vitest run` calls.
9- Never use bare `vitest ...` in automation; it starts local watch mode unless `run` or `--run` is explicit.
10- For lint/typecheck flows, prefer `scripts/run-oxlint.mjs` and `scripts/run-tsgo.mjs` when adding or editing package scripts or CI steps that should honor repo-local runtime behavior.
11- For changed-file verification, prefer `scripts/check-changed.mjs` and keep lane classification in `scripts/changed-lanes.mjs`. Use `node scripts/check-changed.mjs --dry-run [--staged|-- <files...>]` to inspect the plan before running anything expensive. Do not copy path-scope rules into new hooks or ad hoc CI snippets.
12- For one/few lint files, prefer direct `node scripts/run-oxlint.mjs --tsconfig <matching config> <files...>` over sharded `pnpm lint`; `check-changed.mjs` owns this targeting for core, extension, and script diffs.
13 
14## Local Heavy-Check Lock
15 
16- Respect the local heavy-check lock behavior in `scripts/lib/local-heavy-check-runtime.mjs`.
17- Do not bypass that lock for real heavy commands just to make a local loop look faster.
18- Metadata-only or explicitly narrow commands may skip the lock when the existing helper logic says that is safe.
19- If you change the lock heuristics, add or update the narrow tests under `test/scripts/`.
20 
21## PR Prepare Gates
22 
23- `scripts/pr` serializes review, prepare, and merge operations per PR across linked worktrees; `scripts/pr gc` skips active or indeterminate locks. Its subcommand classification table is the canonical wrapper trust boundary: a mismatched local wrapper may run only a classified `advisory` subcommand with `--dev-wrapper` or `OPENCLAW_PR_DEV_WRAPPER=1`; classified `landing` subcommands always require canonical/origin-main wrapper code. A successful command return is the trusted synchronous-completion contract: every PR-state-mutating child must be joined before returning, and such work must never daemonize or explicitly escape both the operation group and lock-notification FD. A failed command auto-releases only while its explicit pre-side-effect validation marker remains active; failures after mutation/tool launch, interruptions, and controller loss stay locked because detached children cannot be disproved. After verifying no child tools remain, use the reported exact-OID `scripts/pr lock-recover` command. Never bypass or delete these refs manually.
24- `scripts/pr prepare-gates` holds the heavy-check lock for its whole local gate block (`scripts/pr-gates-lock.mjs`), so concurrent gate runs across `.worktrees` queue as units instead of dying on child lock timeouts or vitest no-output watchdog kills.
25- `OPENCLAW_PR_GATES_REMOTE=testbox` runs the full-suite `pnpm test` gate on a Blacksmith Testbox through `scripts/crabbox-wrapper.mjs` (same delegation as `check:changed`); `pnpm build`/`pnpm check` stay local. The `tbx_` lease id and Actions run URL land in `.local/gates.env` (`REMOTE_GATES_*`) and `.local/prep.md`. Use it for reviewed trusted code when a loaded host makes the local 88-shard run stall-kill; contributor/fork code stays on secretless CI or sanitized AWS unless a maintainer explicitly approves credentialed execution.
26 
27## Generated Outputs
28 
29- If a script writes generated artifacts, keep the source-of-truth generator, the package script, and the matching verification/check command aligned.
30- Prefer additive generator/check pairs like `*:gen` and `*:check` over one-off undocumented scripts.
31 
32## Scope
33 
34- Keep script-runner behavior, wrapper expectations, and generated-artifact guidance here.
35- Leave repo-global verification policy in the root `AGENTS.md`.
36 

Commands it names

  • pnpm test ...
  • vitest run
  • vitest ...
  • node scripts/check-changed.mjs --dry-run [--staged|-- <files...>]
  • node scripts/run-oxlint.mjs --tsconfig <matching config> <files...>
  • pnpm lint
  • pnpm test
  • pnpm build
  • pnpm check

Sections

  • Scripts Guide
  • Wrapper Rules
  • Local Heavy-Check Lock
  • PR Prepare Gates
  • Generated Outputs
  • Scope

What it covers

testcode-stylegit-prsecuritydo-not

Stack — with the evidence

typescript

(1.00)

docker

(1.00)

pnpm

(0.85)

vitest

(0.85)

aws

(0.70)

javascript

(0.60)

monorepo

(0.60)

kubernetes

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
openclaw
Language
—
License
—
Archived
no

All configs in this repo

Also in openclaw/openclaw

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
openclaw/openclawextensions/telegram/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6stylegitsecurityapi+159/1003 days ago
openclaw/openclawsrc/agents/embedded-agent-runner/run/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6teststyleperformance47/1003 days ago
openclaw/openclawsrc/agents/tools/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6testperformanceagent-behaviour51/1003 days ago
openclaw/openclawsrc/plugin-sdk/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6styledo-not67/1003 days ago
openclaw/openclawsrc/plugins/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6styledo-not62/1003 days ago
openclaw/openclawtest/helpers/AGENTS.md · 385kAGENTS.mdtypescriptdocker+6buildteststyle51/1003 days ago
Diff against extensions/telegram/AGENTS.md Diff against src/agents/embedded-agent-runner/run/AGENTS.md Diff against src/agents/tools/AGENTS.md Diff against src/plugin-sdk/AGENTS.md Diff against src/plugins/AGENTS.md Diff against test/helpers/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
ethereum/go-ethereumAGENTS.md · 51kAGENTS.mdgodocker+1buildtestlint-formatgit+1100/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack