farm-ready-gate
farm-fe/farm/.claude/skills/farm-ready-gate/SKILL.md
Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push.
Skill5.6k starsChanged 5 months ago
What's in it
- Verify Constraints (MANDATORY)
- Tiered Verification (choose one tier before running anything)
- Tier 1 — Bug Fixes & Simple/Localized Changes
- Tier 2 — Complex / Multi-Package Changes & Pre-Release Gate
- Ready Flow Reference (from scripts/ready.mjs)
- Execution Policy
- Output Format
- Guardrails
--- name: farm-ready-gate description: Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push. license: MIT compatibility: Requires Node, pnpm, cargo, and project dependencies. metadata: author: farm version: "1.0" --- Run repository verification with build-first constraints. For verify/acceptance, default to npm run build only. ## Verify Constraints (MANDATORY) 1. All build verification for core and Rust plugins must use `npm run build`. 2. Verify flow must not run `cargo build`, `cargo check`, or `cargo clippy`. 3. For examples, verify by running `npm run build` in each affected example directory. 4. Only run `pnpm run ready` when the user explicitly asks for full CI parity. ## Tiered Verification (choose one tier before running anything) ### Tier 1 — Bug Fixes & Simple/Localized Changes Use when: fixing a bug, changing a single package/crate/plugin, adding a small localized feature. **Steps (run in order, stop at first failure):** 1. **Build `@farmfe/core`** (always required — it is the central dependency): ```bash pnpm --filter @farmfe/core run build ``` 2. **Build affected Rust plugin packages** (from each changed plugin directory): ```bash npm run build ``` 3. **Build affected examples** (every example that exercises the changed feature): ```bash cd examples/<name> && npm run build ``` If all three steps pass, verification is PASS. --- ### Tier 2 — Complex / Multi-Package Changes & Pre-Release Gate Use when: refactoring across multiple packages/plugins, changing plugin/compiler APIs, touching build infrastructure. **Default verify flow (still build-only):** ```bash pnpm --filter @farmfe/core run build # then run npm run build in each changed rust-plugin/js-plugin/example package ``` **Optional CI parity flow (only if explicitly requested):** ```bash pnpm run ready ``` Do not switch to this flow automatically. ## Ready Flow Reference (from scripts/ready.mjs) When `pnpm run ready` is explicitly requested, the script runs checks in this order: 1. Install dependencies (`pnpm install`) 2. Clean artifacts (`node ./scripts/clean.mjs`) 3. Spell check (`npx cspell "**" --gitignore`) 4. Build core/plugins/cli via `runTaskQueue` 5. Cargo check (`cargo check --color always --all --all-targets`) 6. Cargo clippy (`cargo clippy`) 7. TypeScript checks (`pnpm run --filter "@farmfe/*" type-check`) 8. Unit tests (`pnpm run test`) 9. Rust tests (`cargo test -j <cpu_based_jobs>`) 10. Build core CJS (`buildCoreCjs`) 11. Build examples (`buildExamples`) 12. E2E tests (`pnpm run test-e2e`) ## Execution Policy 1. Determine tier based on change scope before running any commands. 2. For verify/acceptance, default to build-only checks using `npm run build`. 3. Do not run `cargo check` or `cargo clippy` in verify flow. 4. Run `pnpm run ready` only when explicitly requested by the user. 5. Do not claim success unless all chosen-tier steps exit with code 0. ## Output Format - `Result`: PASS or FAIL - `Command`: exact command executed - `Failure Step`: if failed, map to ready flow item number/name - `Next Action`: one concrete fix direction ## Guardrails - Do not skip steps unless user explicitly requests a partial check. - Preserve current git changes; do not revert files automatically. - Keep logs summarized; include only the key failing lines.
More agent context in farm-fe/farm
53 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- a5c-ai-docusaurus.agents/skills/a5c-ai-docusaurus/SKILL.md
- agent-browser.agents/skills/agent-browser/SKILL.md
- brainstorming.agents/skills/brainstorming/SKILL.md
- building-farm-from-source.agents/skills/building-farm-from-source/SKILL.md
- creating-changesets.agents/skills/creating-changesets/SKILL.md
- dispatching-parallel-agents.agents/skills/dispatching-parallel-agents/SKILL.md
- executing-plans.agents/skills/executing-plans/SKILL.md
- farm-ready-gate.agents/skills/farm-ready-gate/SKILL.md
- find-skills.agents/skills/find-skills/SKILL.md
- finishing-a-development-branch.agents/skills/finishing-a-development-branch/SKILL.md
- git-commit-push.agents/skills/git-commit-push/SKILL.md
- rebase-commit-push-pr.agents/skills/rebase-commit-push-pr/SKILL.md
- receiving-code-review.agents/skills/receiving-code-review/SKILL.md
- requesting-code-review.agents/skills/requesting-code-review/SKILL.md
- rust-best-practices.agents/skills/rust-best-practices/SKILL.md
- rust-engineer.agents/skills/rust-engineer/SKILL.md
- self-improving-agent.agents/skills/self-improving-agent/SKILL.md
- subagent-driven-development.agents/skills/subagent-driven-development/SKILL.md
- systematic-debugging.agents/skills/systematic-debugging/SKILL.md
- test-driven-development.agents/skills/test-driven-development/SKILL.md
- using-git-worktrees.agents/skills/using-git-worktrees/SKILL.md
- using-superpowers.agents/skills/using-superpowers/SKILL.md
- verification-before-completion.agents/skills/verification-before-completion/SKILL.md
- writing-plans.agents/skills/writing-plans/SKILL.md
- writing-skills.agents/skills/writing-skills/SKILL.md
- a5c-ai-docusaurus.claude/skills/a5c-ai-docusaurus/SKILL.md
- agent-browser.claude/skills/agent-browser/SKILL.md
- brainstorming.claude/skills/brainstorming/SKILL.md
- creating-changesets.claude/skills/creating-changesets/SKILL.md
- dispatching-parallel-agents.claude/skills/dispatching-parallel-agents/SKILL.md
- executing-plans.claude/skills/executing-plans/SKILL.md
- find-skills.claude/skills/find-skills/SKILL.md
- finishing-a-development-branch.claude/skills/finishing-a-development-branch/SKILL.md
- gh-cli.claude/skills/gh-cli/SKILL.md
- git-commit-push.claude/skills/git-commit-push/SKILL.md
- rebase-commit-push-pr.claude/skills/rebase-commit-push-pr/SKILL.md
- receiving-code-review.claude/skills/receiving-code-review/SKILL.md
- requesting-code-review.claude/skills/requesting-code-review/SKILL.md
- rust-best-practices.claude/skills/rust-best-practices/SKILL.md
- rust-engineer.claude/skills/rust-engineer/SKILL.md
- self-improving-agent.claude/skills/self-improving-agent/SKILL.md
- subagent-driven-development.claude/skills/subagent-driven-development/SKILL.md
- systematic-debugging.claude/skills/systematic-debugging/SKILL.md
- test-driven-development.claude/skills/test-driven-development/SKILL.md
- using-git-worktrees.claude/skills/using-git-worktrees/SKILL.md
- using-superpowers.claude/skills/using-superpowers/SKILL.md
- verification-before-completion.claude/skills/verification-before-completion/SKILL.md
- writing-plans.claude/skills/writing-plans/SKILL.md
- writing-skills.claude/skills/writing-skills/SKILL.md
- e2e-example-acceptance.github/skills/e2e-example-acceptance/SKILL.md
- farmfe-guideskills/farmfe-guide/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

