← Browse

@crisxuan/agent-workflow-kit

B

Evaluation-first workflow rules for bringing AI coding agents into real software projects.

instructionscodex

Install

agr install @crisxuan/agent-workflow-kit --target codex

Writes 1 file into AGENTS.md, pinned to git-1b00a95d.

  • AGENTS.md

Document

AI Project Workflow

Project Rules

This is a public documentation and agent-workflow repository. Keep changes focused, readable, and tool-neutral.

Before editing, inspect the existing structure and follow local patterns. Do not introduce unrelated formatting churn, broad rewrites, or new tooling unless the change needs it.

Synchronization Requirements

When changing public guide content, keep these pairs synchronized:

  • README.md and README.zh-CN.md
  • docs/guide.md and docs/guide.zh-CN.md
  • skills/agent-workflow-kit/ and skills/agent-workflow-kit-zh-cn/

When changing reusable workflow rules or references, check whether the same idea appears in:

  • docs/guide*.md
  • skills/*/SKILL.md
  • skills/*/references/agents-templates*.md
  • skills/*/references/engineering-references*.md

Do not leave one language or package with stale references that were removed elsewhere.

Verification

Before completion, run:

ruby scripts/check-docs.rb
git diff --check

For faster local structural checks, or when network link checks are flaky, run:

SKIP_LINK_CHECK=1 ruby scripts/check-docs.rb

External Action Safety

Ask before changing GitHub repository metadata, topics, releases, branch settings, Pages settings, or other remote configuration.

Ask before pushing commits unless the user explicitly requests a push.

Completion Criteria

A task is complete only when:

  • the requested documentation or workflow change is implemented
  • related English and Chinese files are synchronized
  • related guide and skill references are synchronized
  • verification commands pass, or failures are clearly explained
  • the final response reports what changed and what was verified

Repository README

Describes crisxuan/agent-workflow-kit as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.

Agent Workflow Kit

Evaluation-first workflow rules for bringing AI coding agents into real software projects.

Docs Check License

English Guide · 中文文档 · 中文首页


What This Is

Agent Workflow Kit is a tool-neutral guide and agent workflow package for deciding whether a repository needs AI-assisted development rules, and how heavy those rules should be. It is not tied to Codex: any LLM, coding agent, or agent harness can use the guide, templates, and rules.

It helps maintainers answer five practical questions:

  • Does this project need an AI workflow at all?
  • Should the workflow be minimal, standard, or full?
  • When should a spec layer be used?
  • What should AI agents verify before claiming work is done?
  • Which external actions require explicit maintainer approval?

The central rule is simple:

Evaluate the project first. Then choose the smallest workflow that reduces real risk.

At A Glance

flowchart LR
  Inspect["Inspect repo"]
  Score["Score risk<br/>0-16"]
  Level["Choose level<br/>0 / 1 / 2 / 3"]
  Rules["Copy rules<br/>AGENTS.md"]
  Verify["Verify on<br/>one small change"]

  Inspect --> Score --> Level --> Rules --> Verify

Why Use It

ProblemWhat This Project Provides
AI agents jump into code too quicklyA repo inspection and risk scoring flow before changes
Requirements vanish into chat historyGuidance for adding a spec or change-memory layer only when needed
Work is claimed done without evidenceCopy-ready verification and completion rules for AGENTS.md
Tooling stacks overlap and conflictConflict rules for specs, plans, reviews, hooks, and external actions
Teams want consistent agent behaviorAgent-facing Skill packages and reusable templates for repeatable evaluations

How To Use The Kit

PathBest When
Read the English guide or Chinese guideYou want to evaluate a project manually
Copy examples/AGENTS.level-2.mdYou want a practical standard workflow starter
Use the skills/agent-workflow-kit packageYou want an agent to inspect a repo and produce a workflow decision
Adapt the Markdown rules for Claude, Cursor, Codex, Gemini, or another harnessYou want consistent behavior across tools

Quick Start

  1. Open the English guide or Chinese guide.
  2. Score your project with the 0-16 risk table.
  3. Choose the matching workflow level.
  4. Copy the smallest useful AGENTS.md template block.
  5. Fill in real install, test, lint, build, and browser/E2E commands.
  6. Test the workflow on one small change before making it team policy.

Workflow Levels

LevelUse WhenTypical Rules
Level 0AI does not edit code, or the project is disposableNo formal AI workflow
Level 1Small maintained projectsBasic agent rules and verification commands
Level 2Most AI-assisted software projectsBasic rules, spec guidance, agent discipline, external-action safety
Level 3Production, security-sensitive, complex UI, or multi-agent teamsLevel 2 plus review gates and stronger verification

Documentation

DocumentPurpose
English GuideFull public guide for maintainers
Chinese GuideFull Chinese public guide
AGENTS TemplatesCopy-ready English AGENTS.md blocks
中文 AGENTS 模板Copy-ready Chinese Skill reference with English agent blocks
Engineering ReferencesOptional engineering guideline catalog
中文工程规约参考Chinese reference catalog
ContributingContribution and synchronization guide
ChangelogProject change history
Level 2 AGENTS ExampleCopy-ready standard workflow starter

Agent Skills And Templates

The skills/ directory contains agent-facing versions of the guide. They are packaged as Codex-compatible Skills, but the instructions are plain Markdown and YAML, so other LLMs, coding agents, and agent harnesses can read and adapt them as project workflow rules.

These packages are optional. If you only want the human guide or AGENTS.md templates, use the documents above.

SkillUse It For
skills/agent-workflow-kitEnglish agent Skill package for evaluating a repository, scoring risk, recommending workflow level, and preparing project rules after approval
skills/agent-workflow-kit-zh-cnChinese agent Skill package with the same workflow and Chinese-facing instructions

Each skill includes:

  • SKILL.md: the agent workflow and safety rules
  • agents/openai.yaml: display metadata and default prompt
  • references/agents-templates*.md: reusable AGENTS.md template blocks
  • references/engineering-references*.md: optional engineering reference catalog

Example prompts:

Use $agent-workflow-kit to evaluate this repository and recommend the right AI workflow level.
使用 $agent-workflow-kit-zh-cn 评估这个仓库,并推荐合适的 AI 工作流级别。

Repository Layout

README.md                         # Project homepage
README.zh-CN.md                   # Chinese project homepage
AGENTS.md                         # AI maintenance rules for this repo
CONTRIBUTING.md                   # Contribution guide
CHANGELOG.md                      # Project change history
.gitattributes                    # GitHub Linguist metadata
docs/guide.md                     # Full English guide
docs/guide.zh-CN.md               # Full Chinese guide
examples/AGENTS.level-2.md        # Copy-ready standard workflow starter
skills/
  agent-workflow-kit/        # English agent Skill package
  agent-workflow-kit-zh-cn/  # Chinese agent Skill package
scripts/check-docs.rb             # Markdown, YAML, skill, and link checks
.github/workflows/docs-check.yml  # GitHub Actions validation

Validation

Run the local checks before publishing documentation changes:

ruby scripts/check-docs.rb

The check validates Markdown fences, YAML syntax, skill structure, and public links.

License

  • Guide prose and Skill instructions: CC BY 4.0
  • Reusable AGENTS.md templates and example code blocks: CC0 1.0
  • Third-party tools and references keep their own licenses.

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-1b00a95d6ed92026-08-04