SuperAPIAI Directory

ai-coding-rules-sampler

github.com · AI coding

ai-coding-rules-sampler is a free MIT-licensed collection of AI coding rules and skills for Cursor, Claude Code, Codex (AGENTS.md), Windsurf, and Copilot, providing copy-paste-ready native-format configurations with the goal of making coding agents plan first, stay safe, and verify their work. The project uses AGENTS.md as the single source of truth, with CLAUDE.md importing it via @AGENTS.md; it includes 3 always-on rules (core engineering, security, agent workflow) and 3 skills/slash commands (/plan-feature, /review-changes, /record-decisions), covering 5 tool formats. The rules cover matching existing code style, handling errors explicitly, not inventing APIs or package names, not adding dependencies without permission, protecting secrets, boundary validation, server-side authorization, parameterized queries, and reading/updating PLAN.md first, running checks at each step, and not claiming something works without having run it. Installation involves copying the contents of a folder to the repository root; if an AGENTS.md or CLAUDE.md already exists, merge rather than overwrite, and keep AGENTS.md as the single source of truth. Pricing, command-line install commands, and performance data are not yet available.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

  1. Purpose and positioning ai-coding-rules-sampler is a free, copy-paste-ready set of AI coding rules and skills, MIT-licensed, usable in any project, including commercial ones. It provides configurations in each tool's native format for Cursor, Claude Code, Codex (AGENTS.md), Windsurf, and Copilot, so that AI coding agents plan first, stay safe, and prove their work. The project uses AGENTS.md as the single source of truth; CLAUDE.md imports it via @AGENTS.md. This sampler is a slice of the paid kit at kitquarry.com; the free sampler archive and installation docs are at https://kitquarry.com/free。

II. Main Capabilities

  1. 3 persistent rules: core engineering, security, agent workflow.
  2. 3 skills/slash commands: /plan-feature, /review-changes, /record-decisions.
  3. 5 formats: .cursor/rules/*.mdc; CLAUDE.md + .claude/skills; AGENTS.md + .agents/skills; .windsurf/rules + skills (and legacy workflows); .github/copilot-instructions.md + prompts.

Core engineering rules require: match existing code style, structure, and libraries; read adjacent files before writing new code; prefer small, pure, typed functions; handle errors explicitly, no silent catches; do not invent APIs, config keys, or package names, verify against documentation or source for installed versions; do not add dependencies without asking, prefer the standard library and what is already installed; secrets must not enter code, logs, tests, or commits, configuration comes from environment variables.

Security rules require: do not hardcode, log, or commit secrets; read from environment variables; put .env in .gitignore; rotate after a leak; validate all external input at boundaries with schemas (zod / pydantic) and reject unknown fields; authorize every request server-side by resource owner/role, do not trust client-provided ids or roles; use only parameterized queries, do not concatenate SQL, shell, or HTML, encode output; before adding dependencies check maintenance status, download counts, and security advisories, and run audit commands.

Agent workflow rules require: read PLAN.md first; for non-trivial work, write/update PLAN.md before coding (goals, files, steps, completion criteria); do one feature or bug per session; keep steps small enough to verify (roughly under 150 lines of change); after each step run project checks (see Commands in README/AGENTS.md) and fix failures; do not claim something works without running it, state what was verified and what was not; ask before adding dependencies, changing public APIs, touching auth/payments/migrations, or deleting files; when context grows long, summarize state into PLAN.md and suggest a new session. Full text see codex/AGENTS.md.

III. Usage To install, copy the contents of one folder to the repository root. If an AGENTS.md or CLAUDE.md, the corresponding sections should be merged rather than overwritten, and one AGENTS.md should be kept as the single source of truth; add @AGENTS.md at the top of CLAUDE.md. workflows/PLAN.md is the plan template; when the repository does not yet have a PLAN.md, /plan-feature copies it to the repository root and names it PLAN.md. If you only need the raw Cursor rules, they are also available in rules/.

Decision log: AGENTS.md has ## Decisions log at the end. At the end of a session, run /record-decisions (Claude Code), $record-decisions (Codex), or the /record-decisions skill (Windsurf / Devin). The agent will list the decisions made, ask you, and append a dated one-line record, avoiding re-litigating settled choices in the next session.

IV. Applicable scenarios Suitable for projects using Cursor, Claude Code, Codex (AGENTS.md), Windsurf, or Copilot, especially for teams or individuals who want to unify engineering standards, security requirements, planning processes, and verification habits across tools; it can also be used for projects that need to retain decision records between sessions. The MIT license permits commercial use.

V. Limitations and additions This repository is a free sampler, not the complete paid suite. The materials mention that the paid suite at kitquarry.com includes: AI Coding Rules Pack (testing, git, and code review rules; TypeScript, React/Next.js, Python/FastAPI, Node stack rules; agent-safe definition of done that prohibits changing tests to pass; version pinning (Tailwind v4, Next.js 16, Supabase); local rules files for auth and billing; more skills); Starter kits (tested AI agent starter (TypeScript, MCP), SaaS starter (Next.js 16, auth, Lemon Squeezy), and Godot 4 game kit, all with preinstalled rules). The specific prices, purchasing methods, and complete contents of these paid suites are not yet provided. The materials also do not provide command-line installation commands, performance, oreffectiveness data; actual use requires merging configuration according to the repository documentation and project circumstances.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools