Communitygithub.com

SamuelChien/mega-skills-collection

當使用者要求「建立 AGENTS.md」、「更新 AGENTS.md」、「維護代理文件」、「設定 CLAUDE.md」,或需要保持代理指令簡潔時使用此技能。它強制執行以研究為基礎的最佳實踐,打造最小化、高信號的代理文件。

mega-skills-collection 是什麼?

此技能專注於維護 AGENTS.md(即代理用文件),使其保持精簡且高效。它基於研究,強調文件長度與指令遵循品質成反比,因此目標是將文件控制在 60 行以內,絕不超過 100 行。此技能支援 Claude Code 等 AI 代理平台,透過分析專案工具鏈(如套件管理器、linter 設定、CI 指令、monorepo 結構),為代理提煉出最關鍵的指令。 技能使用嚴格的寫作規則:僅用標題與項目符號、使用程式碼區塊、引用而非嵌入現有文件、去除所有廢話。它要求必備章節如套件管理器、檔案範圍指令(這比全專案建置更快更便宜)以及提交歸屬(強制代理使用自己的身份)。可選章節僅在真正必要時加入,並且明確列出反模式(如歡迎語、冗長解釋、重複 linter 規則)以避免。 實際上,此技能會引導使用者建立 AGENTS.md 並以符號連結指向 CLAUDE.md。寫入前,它會檢查專案鎖定檔、linter 設定、建置指令、monorepo 跡象及現有慣例。最終結果是一份精簡、行動導向的文件,能讓 AI 代理快速掌握專案並有效運作,而無需多餘的上下文。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/agents-md

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

維護 AGENTS.md

AGENTS.md 是權威性的代理用文件。保持精簡——代理能力強大,不需要被手把手教導。目標低於 60 行;絕不超過 100 行。文件越長,指令遵循品質越差。

使用時機

  • 使用者要求建立、更新或稽核 AGENTS.md 或 CLAUDE.md。
  • 專案需要根據實際工具鏈和儲存庫佈局,提煉出簡潔、高信號的代理指令。
  • 現有代理文件太長、重複,或偏離實際專案慣例。

檔案設定

  1. 在專案根目錄建立 AGENTS.md
  2. 建立符號連結:ln -s AGENTS.md CLAUDE.md

寫入前

分析專案,了解哪些內容應包含在檔案中:

  1. 套件管理器 — 檢查鎖定檔(pnpm-lock.yaml、yarn.lock、package-lock.json、uv.lock、poetry.lock)
  2. Linter/格式化程式設定 — 尋找 .eslintrc、biome.json、ruff.toml、.prettierrc 等(不要在 AGENTS.md 中重複這些)
  3. CI/建置指令 — 檢查 Makefile、package.json 腳本、CI 設定中的權威指令
  4. Monorepo 跡象 — 檢查 pnpm-workspace.yaml、nx.json、Cargo workspace 或子目錄中的 package.json 檔案
  5. 現有慣例 — 檢查現有的 CONTRIBUTING.md、docs/ 或 README 模式

寫作規則

  • 標題 + 項目符號 — 無段落
  • 程式碼區塊 — 用於指令和範本
  • 引用,不內嵌 — 指向現有文件:「請參閱 CONTRIBUTING.md 了解設定」或「遵循 src/api/routes/ 中的模式」
  • 無填充 — 無引言、結論或客套話
  • 信任能力 — 省略顯而易見的上下文
  • 偏好檔案範圍指令 — 每個檔案的測試/lint/型別檢查指令優於全專案建置
  • 不要重複 linter — 程式碼風格存在於 linter 設定中,而非 AGENTS.md

必備章節

套件管理器

僅包含工具和關鍵指令:

## 套件管理器
使用 **pnpm**:`pnpm install`、`pnpm dev`、`pnpm test`

檔案範圍指令

單檔指令比全專案建置更快且更便宜。可用時務必包含:

## 檔案範圍指令
| 任務 | 指令 |
|------|------|
| 型別檢查 | `pnpm tsc --noEmit path/to/file.ts` |
| Lint | `pnpm eslint path/to/file.ts` |
| 測試 | `pnpm jest path/to/file.test.ts` |

提交歸屬

務必包含此章節。代理應使用自己的身份:

## 提交歸屬
AI 提交必須包含:

Co-Authored-By: (代理模型的名稱與歸屬署名)

範例:`Co-Authored-By: Claude Sonnet 4 <[email protected]>`

關鍵慣例

代理必須遵守的專案特定模式。保持簡潔。

選用章節

僅在真正需要時加入:

  • API 路由模式(展示範本,無需解釋)
  • CLI 指令(表格格式)
  • 檔案命名慣例
  • 專案結構提示(指向關鍵檔案,標示應避免的舊程式碼)
  • Monorepo 覆寫(子目錄中的 AGENTS.md 檔案覆寫根目錄)

反模式

省略以下內容:

  • 「歡迎來到...」或「本文件說明...」
  • 「你應該...」或「記得要...」
  • 已在設定檔中定義的 linter/格式化規則(.eslintrc、biome.json、ruff.toml)
  • 列出已安裝的技能或外掛(代理會自動發現它們)
  • 當有檔案範圍替代方案時,使用全專案建置指令
  • 顯而易見的指令(「執行測試」、「寫乾淨的程式碼」)
  • 為何如此的解釋(只說要做什麼)
  • 冗長的散文段落

範例結構

# 代理指令

## 套件管理器
使用 **pnpm**:`pnpm install`、`pnpm dev`

## 提交歸屬
AI 提交必須包含:

Co-Authored-By: (代理模型的名稱與歸屬署名)


## 檔案範圍指令
| 任務 | 指令 |
|------|------|
| 型別檢查 | `pnpm tsc --noEmit path/to/file.ts` |
| Lint | `pnpm eslint path/to/file.ts` |
| 測試 | `pnpm jest path/to/file.test.ts` |

## API 路由
[範本程式碼區塊]

## CLI
| 指令 | 描述 |
|---------|------|
| `pnpm cli sync` | 同步資料 |

限制

  • 僅在任務明確符合上述範圍時使用此技能。
  • 請勿將輸出視為針對特定環境的驗證、測試或專家審查的替代方案。
  • 如果缺少所需的輸入、權限、安全邊界或成功標準,請停止並要求說明。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

相關技能