agentleFS
wisterx-specwisterx-spec/agent-rails/.agents/skills/run-tests/SKILL.md

run-tests

Skill2 starsChanged 7 months agoMITView on GitHub

测试执行路由器。优先执行 project.config.json 中显式声明的测试命令;缺失时再根据 tech_stack 选择兜底规范。

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use prepare-release, create-pr and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ShopifySkill

    prepare-release

    Prepare the changeset-release/main branch for release by syncing version.ts files and running pnpm install

    Also in 3 projects that use this

  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 4 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 4 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 5 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 5 projects that use this

The file

Files
SKILL.md

Run Tests — 路由器

触发形式:

  • /run-tests --mode=fast
  • /run-tests --mode=full

执行顺序

  1. 读取 project.config.json → testing.commands。
  2. --mode=fast 时优先执行 testing.commands.fast。
  3. --mode=full 时优先执行 testing.commands.full。
  4. 命令为空、缺失或仍是 replace-with-* 占位值时,才进入 tech_stack fallback。

命令执行前必须先运行测试锁校验:

python .agents/scripts/test_lock.py verify

verify 失败必须阻断;只有 [SKIP] No lockfile found 可以继续。

Fallback 路由

读取 project.config.json → tech_stack.backend / tech_stack.frontend,加载对应的测试执行规范:

配置值加载文件
python / python+fastapi / python+django.agents/skills/run-tests/pytest.md
node / node+express / node+nestjs.agents/skills/run-tests/jest.md
frontend / react / vue / svelte.agents/skills/run-tests/jest.md
其他不猜测命令;要求用户在 testing.commands.fast/full 中显式配置

强制要求:确定类型后,若存在对应规范文件,必须通过工具物理读取规范文件,不允许凭记忆执行。若无法路由,停止并提示补充 testing.commands,不要凭常识猜项目命令。

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.