본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-rules

Align all AI coding agents to a single source of truth. AGENTS.md for rules, .agents/skills/ for skills, symlinks for everything else. Use when setting up a repo for multiple agents, or when links are missing, broken, or out of date.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(7)

  • SKILL.md6.0 KB
  • README.md2.4 KB
  • scripts/agent-rules.sh3.8 KB
  • scripts/create-symlinks.sh4.2 KB
  • scripts/lib.sh2.6 KB
  • scripts/test-agent-rules.sh4.1 KB
  • scripts/verify-architecture.sh4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent Rules - Single Source of Truth

Every AI coding agent reads its own rules file and its own skills directory. This skill keeps one real copy of each and points the rest at it with symlinks.

Quick Start

/agent-rules                    # create or repair links in the current project
/agent-rules --check            # verify; exits 1 when something is broken
/agent-rules --status           # report only, never fails
/agent-rules --minimal          # skip links agents no longer need
/agent-rules --root <path>      # operate on a project other than $PWD

The target project is the git toplevel of your working directory (or $PWD outside a repo), not wherever this skill happens to be installed.

Single Source of Truth

Two sources, edited by hand:

  1. Rules — AGENTS.md at the project root
  2. Skills — .agents/skills/<skill-name>/SKILL.md

Everything else is a symlink into those two.

AGENTS.md                         ← edit rules here
.agents/skills/                   ← edit skills here

↓ symlinks ↓

CLAUDE.md                       → AGENTS.md
.gemini/GEMINI.md               → ../AGENTS.md
.github/copilot-instructions.md → ../AGENTS.md      (legacy)
.cursor/rules/main.md           → ../../AGENTS.md   (legacy)
.kiro/steering/main.md          → ../../AGENTS.md   (legacy)

.claude/skills/                 → ../.agents/skills
.kiro/skills/                   → ../.agents/skills
.github/skills/                 → ../.agents/skills (legacy)
.codex/skills/                  → ../.agents/skills (legacy)

Agent Support

.agents/skills/ and AGENTS.md are now read natively by several agents, so some links exist purely for older versions. --check treats a missing legacy link as a warning and a missing required link as an error.

AgentRulesSkillsTier
Claude CodeCLAUDE.md →.claude/skills/ →required — reads neither AGENTS.md nor .agents/skills
Gemini CLI.gemini/GEMINI.md →N/Arequired — AGENTS.md only via context.fileName in settings.json
Kiro.kiro/steering/main.md →.kiro/skills/ →skills required; rules legacy (reads root AGENTS.md)
GitHub Copilot.github/copilot-instructions.md →.github/skills/ →legacy — reads AGENTS.md and .agents/skills natively
OpenAI CodexAGENTS.md.codex/skills/ →legacy — scans .agents/skills from CWD up to the repo root
Cursor.cursor/rules/main.md →N/Alegacy — reads AGENTS.md natively

Verified against vendor documentation on 2026-09-07. Run --status to see which links a project still carries.

Known quirk: some Kiro builds do not follow a symlinked steering file. If Kiro ignores your rules, replace .kiro/steering/main.md with a real copy.

Usage

vim AGENTS.md                    # edit rules once, every agent sees it

mkdir -p .agents/skills/my-skill # add a skill once, every agent sees it
vim .agents/skills/my-skill/SKILL.md

Critical Rules

  1. ✅ Only edit AGENTS.md — single source for rules
  2. ✅ Only edit .agents/skills/ — single source for skills
  3. ❌ Never edit a symlinked file — you are editing the source through a confusing alias
  4. ❌ Never copy instead of linking — copies drift

Safety

  • Existing real files are never overwritten. If CLAUDE.md holds hand-written content, it is left alone and reported; --force moves it to CLAUDE.md.bak first. (An exact copy of AGENTS.md is replaced silently — nothing is lost.)
  • Missing parent directories are created.
  • Re-running is idempotent.
  • On Windows, symlinks need git config core.symlinks true; --check warns when the repo is configured otherwise.

What About MCP Configs?

Not symlinked. Formats differ (.json vs .toml), settings are agent-specific, and the files may hold API keys.

  • Claude: .claude/mcp.json · Kiro: .kiro/mcp.json · Cursor: .cursor/mcp.json · Codex: .codex/config.toml

Sync them manually if you need to.

Scripts

  • scripts/agent-rules.sh — entry point (--check / --status / --fix)
  • scripts/create-symlinks.sh — create and repair links
  • scripts/verify-architecture.sh — verify; exit code reflects the result
  • scripts/lib.sh — shared link table used by all three
  • scripts/test-agent-rules.sh — self-test (bash scripts/test-agent-rules.sh)

Each script runs standalone and works on whichever project you are standing in.

Troubleshooting

SymptomFix
Link broken or pointing elsewhere/agent-rules
A stray skills entry inside .agents/skills//agent-rules removes it (planted by v4)
--check fails on a link you do not want--minimal layout, or drop the agent from scripts/lib.sh
Agent still cannot see a skillconfirm .agents/skills/<name>/SKILL.md exists

Version: 5.0 Last Updated: 2026-09-07

Changes since 4.0:

  • Target project resolved from your working directory instead of the skill's install path — --check used to inspect the wrong directory whenever the skill was not vendored into the project
  • Parent directories are created, so bootstrapping an empty repo works
  • Directory links use ln -sfn; re-running no longer plants a broken .agents/skills/skills link inside the source directory
  • Verification exits non-zero on failure, and no longer demands that agent-rules itself be vendored into the project it checks
  • Real files are never clobbered; --force backs them up
  • Links are tiered required/legacy against what agents read natively today

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Read, answer and post on the Buda community forum at community.buda.im through its /api/v1/community REST API. Lists categories and posts, reads a thread with its replies, searches, and publishes posts and replies behind an explicit confirmation. Use when the user invokes $buda-community or /buda-community, asks what is happening in the Buda community, wants an unanswered question triaged or answered, or wants something posted or announced there.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

Read, answer and post on the Busabase community forum at community.busabase.com through its /api/v1/community REST API. Lists categories and posts, reads a thread with its replies, searches, and publishes posts and replies behind an explicit confirmation. Use when the user invokes $busabase-community or /busabase-community, asks what is happening in the Busabase community, wants an unanswered question triaged or answered, or wants something posted or announced there.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

kelly-ads

무료

Ad-campaign command desk (投放指挥台, Busabase App-in-Skill) for a cross-border e-commerce seller running Amazon Ads, Meta (FB/IG), TikTok Ads, and Google Ads. Use when the user invokes $kelly-ads or /kelly-ads, or asks about 投放, ad campaigns, ad spend, ACOS, ROAS, Amazon Ads, TikTok ads, Meta ads, Google Ads, search terms, negative keywords, bid adjustment, budget pacing, CPC spikes, rejected ads, ad anomaly detection, 广告优化, or reviewing agent-proposed adjustment cards (negative keyword, bid down/up, pause target, budget shift, creative refresh).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

Busabase-backed App-in-Skill low-code agent configuration and governance console for a platform team. Use when the user invokes $kelly-agent-builder or /kelly-agent-builder, wants to review or edit a catalog of mock LLM agent configs, check quota usage, find configs that need attention, move a draft to live, pause a live agent, or archive an agent. Mock config/governance console only — it never provisions or calls any real agent.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

Review board (Busabase App-in-Skill) that runs a fixed suite of mock test cases against a baseline vs candidate agent version and surfaces rubric-scored regressions before a release. Use when the user invokes $kelly-agent-eval or /kelly-agent-eval, wants to review agent-version regressions, compare baseline vs candidate quality, triage a release, or record a release approve/block decision. Deterministic mock rubric scores only — not a real LLM-judge call, and it never deploys anything.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

Busabase App-in-Skill dashboard visualizing a generated MOCK fleet of LLM agents running behind a shared AI gateway for a generic organization. Use when the user invokes $kelly-agent-observability or /kelly-agent-observability, wants to review agent health, call volume, latency, error rates, cost, or trace-level chain breaks across an agent fleet. This is a demo/reference dashboard over a generated mock fleet snapshot seeded into Busabase by a trusted script — never a live monitoring integration, never a real gateway or real agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mr-kelly/skills52026년 10월 14일 업데이트

mr-kelly의 스킬 모두 보기

이 스킬의 문제 신고