angular-cop
БесплатноБез исполняемых скриптовНе проверенPre-merge code review for Angular + TypeScript pull requests. Diffs current branch against a target branch, applies Angular-specific checklists (signals…
от fmflurry★ 173 звезды на GitHubОб этом скилле
angular-cop
Pre-merge review. Compares HEAD vs origin/<target>. Angular-aware. Project-aware (reads AGENTS.md). Tooling-aware (runs lint + tsc).
When to Activate
/cop-review <target>slash command- User asks for review before merging a PR
- User specifies a target branch and wants a diff review
- angular-cop agent is invoked
Inputs
| Arg | Required | Default | Meaning |
|---|---|---|---|
<target> |
yes | — | Target branch (e.g. main, develop, release/x) |
--level |
no | auto | junior (verbose teaching) or senior (terse). Auto = senior. |
--scope |
no | all | Comma list: signals,rxjs,arch,flurryx,ts,design,ddd,a11y |
--no-tools |
no | false | Skip lint + tsc (static review only) |
Hard Rules
- Read-only. Never patch code. Output report only.
- Diff window:
git merge-base HEAD origin/<target>..HEAD. Never review changes already on target. - Confidence ≥ 80%. Skip uncertain findings. Use
❓instead of a speculative🔴 Important [bug]:. ❓ never blocks. - Project rules win.
AGENTS.mdoverrides this skill. Re-read on every run; do not cache between sessions. - flurryx ground truth: load the flurryx skill before flagging state-management code. Do not invent APIs.
- No fluff. No "great work", no restating what the diff already shows.
Pipeline
1. Parse args -> target, level, scope
2. git fetch <remote> <target> (silent; --quiet)
3. base = git merge-base HEAD <remote>/<target>
4. changed = git diff --name-status base..HEAD
5. Load <repo>/AGENTS.md (if exists) -> project rules
6. For each changed file:
- Skim full file (not just hunk) for context
- Apply relevant sub-checklists by extension/role:
*.component.ts / *.component.html / *.component.css -> signals.md, rxjs.md, clean-architecture.md, design-system.md, a11y
*.facade.ts / *.store.ts -> flurryx.md, clean-architecture.md
*.adapter.ts / *.port.ts -> clean-architecture.md
*.ts -> typescript-strict.md
domain/**/*.ts -> angular-ddd
- Apply skill `comment-judge` (REVIEW mode) to every added/changed comment
- If --scope includes ddd && domain/ code changed: load angular-ddd (review-checklist.md) for tactical/strategic DDD checks
7. If !--no-tools:
- npm run lint -- --quiet (or eslint --quiet) on changed files
- npx tsc --noEmit (full project; abort early on first 50 errors)
8. Aggregate findings -> render via output-format.md
Tags
| Badge | Tag | Category | Blocks |
|---|---|---|---|
| 🔴 | Important | [bug] broken behavior, runtime crash, data loss | yes |
| 🔴 | Important | [sec] security risk (XSS, leaked secret, auth bypass) | yes |
| 🔴 | Important | [arch] BLOCK architecture / layering rule | yes |
| 🔴 | Important | [comment] confirmed false/stale or forbidden comment; [format] failed format check | yes |
| 🟡 | Nit | [risk] works today, fragile tomorrow (leak, race, missing teardown) | no, unless the finding cites an AGENTS.md hard rule |
| 🟡 | Nit | [nit] style, naming, micro-optim | no |
| ⚪ | Pre-existing | any category already on the base | no |
| ❓ | question | [q] genuine question | never |
Sub-pages (read on demand)
- angular-cop-enforcement — BLOCK vs WARN tag checklist (load always)
- angular-cop-enforcement-tooling — ESLint flat config + architecture plugins for app repos
- angular-cop-signals — Angular signals, change detection, OnPush, computed, no-method-in-template
- angular-cop-rxjs — RxJS hygiene, takeUntilDestroyed, async pipe, leak patterns
- angular-cop-clean-architecture — facade / use-case / port / adapter / store boundaries
- angular-cop-flurryx — flurryx-specific rules (decorator order, keyed stores, no manual Record updates)
- angular-cop-typescript-strict — no
any, immutability, narrowing, no!, readonly - angular-cop-design-system — Kourou v0 design-token / color / spacing / typography tags (load for *.html and template-bearing files)
- angular-ddd — DDD tactical patterns (entities, value objects, aggregates, repositories) and strategic design (bounded contexts, ubiquitous language, ACL) for domain-layer code
- angular-cop-output-format — junior vs senior render templates
AGENTS.md Loading
Always:
test -f AGENTS.md && cat AGENTS.md
test -f .agent/AGENTS.md && cat .agent/AGENTS.md
Parse rule blocks. Where this skill and AGENTS.md disagree, AGENTS.md wins. Cite the AGENTS.md line in the finding: (AGENTS.md §<section>).
Output Contract
Single markdown document, sections in fixed order:
- Summary — target, base SHA, head SHA, files changed, finding counts by tag.
- Important (🔴) — blocks. Sorted by file path.
- Nit (🟡) — does not block alone.
- Pre-existing (⚪) and questions (❓) — collapsible. Pre-existing does not block. Questions never block.
- Tooling — lint summary, tsc summary, test status if avai
Установить angular-cop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл angular-cop?
Pre-merge code review for Angular + TypeScript pull requests. Diffs current branch against a target branch, applies Angular-specific checklists (signals, RxJS, clean architecture, flurryx, TS strict), runs lint + tsc, and emits a tiered report (verbose for juniors, terse for seniors). Auto-loads project AGENTS.md rules. Use when user runs /cop-review, says "pre-merge review", "review before merging", "check my PR against <branch>", or invokes the angular-cop agent.
Как установить скилл angular-cop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл angular-cop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic