Token导航 LogoToken导航

Agent Skill · 前端设计

repo-standards-enforcement(回购协议标准执行)

repo-standards-enforcement 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

repo-standards-enforcement 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,045。

总安装 563周安装 23GitHub Stars 1下载 182核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:repo-standards-enforcement(回购协议标准执行)
来源仓库:https://github.com/mwillbanks/agent-skills
仓库路径:skills/repo-standards-enforcement
安装命令:
npx skills add https://github.com/mwillbanks/agent-skills --skill repo-standards-enforcement
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mwillbanks/agent-skills --skill repo-standards-enforcement

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

repo-standards-enforcement 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

它能帮助 Agent 确保代码符合团队规范和行业标准,提升代码质量。可通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法请参考原始 README。安装前建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/repo-standards-enforcement

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/mwillbanks/agent-skills --skill repo-standards…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

repo-standards-enforcement 怎么安装?

在终端执行 npx skills add https://github.com/mwillbanks/agent-skills --skill repo-standards-enforceme…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

repo-standards-enforcement 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

repo-standards-enforcement 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

repo-standards-enforcement 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

repo-standards-enforcement 用的人多吗?

公开数据是累计安装 563 次,近一周安装 23 次,下载 182 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

repo-standards-enforcement 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
repo-standards-enforcement

回购协议标准执行 · 本页

5631需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Repository Standards Enforcement

Use this skill whenever work must comply with repository-native standards, tooling, package-manager rules, TypeScript safety, maintainability rules, design system constraints, testing expectations, and infrastructure conventions.

This skill enforces repo detection, toolchain compliance, maintainability-first implementation, validation discipline, and rejection of one-off or low-quality engineering shortcuts.

Concern ownership

This skill is a repository-wide policy skill.

When another skill exists that is more specific to a concern covered here, that more specific skill owns execution for that concern.

Priority order:

  1. Narrow concern-specific skill
  2. Stack-specific skill
  3. Repository-wide standards skill

Examples:

  • biome-enforcement owns Biome execution, remediation flow, config and ignore-path decisions, and post-Biome validation
  • a MUI or design-system implementation skill owns component and design-system execution details
  • a Pulumi-specific infrastructure skill owns infrastructure execution details

This skill continues to govern all remaining repository-standard concerns that are not owned by a more specific skill.

The agent must not run duplicate or conflicting workflows across overlapping skills.


When to use

Invoke this skill whenever the task involves modifying code, tests, infrastructure, tooling, build scripts, workspace configuration, shared components, APIs, or any other repository artifact that must conform to local engineering standards.

Use it together with agent-execution-mode for implementation tasks, and defer to any more specific skill that governs a subset of the repository rules enforced here.


Core enforcement goals

  • honor the repository’s actual toolchain and conventions
  • enforce package-manager purity
  • enforce TypeScript correctness
  • enforce linting and formatting correctness through deferred bulk remediation unless a more specific linting or formatting skill supersedes this guidance
  • enforce maintainability over one-off implementations
  • enforce design-system-first thinking
  • enforce test discipline
  • enforce infrastructure standards when Pulumi is present
  • explicitly hand off to stack-specific skills when detectable
  • defer concern ownership to more specific skills when available
  • enforce deterministic validation sequencing and idempotent remediation workflows

Repo detection matrix

Affected scope determination

The agent must determine the minimal correct scope for validation and remediation.

Rules:

  • prefer affected files or packages when boundaries are clear
  • expand to repo-wide scope when tooling, configs, or cross-cutting concerns require it
  • include transitive dependents when changes impact shared modules or contracts
  • avoid unnecessarily broad repo-wide operations when a narrower scope is safe and correct

Command resolution

When executing build, test, linting, or formatting steps, command selection must be deterministic and repository-native.

Rules:

  • prefer repository-defined scripts in package manifests, workspace tooling, task runners, or documented developer workflows
  • if multiple candidate commands exist, select the command aligned with repository conventions, docs, or existing automation
  • if no repository-defined command exists, fall back to the standard toolchain command implied by detected tooling
  • do not invent non-standard commands when a repository-defined command exists
  • use the same command family consistently across validation phases unless a more specific skill requires otherwise
  • resolve commands before execution begins so validation phases do not switch entrypoints mid-workflow

Linting and formatting tooling

Detect if any linting or formatting tooling is configured, for example:

  • biome configuration files
  • eslint configuration files
  • prettier configuration files
  • other repository-defined linting or formatting tools

If detected:

  • linting and formatting are mandatory unless a more specific linting or formatting skill supersedes this section
  • linting and formatting remediation must be deferred until after core build validation and initial test execution
  • when a more specific linting or formatting skill exists, that skill owns execution timing, command structure, remediation workflow, and post-validation behavior
  • otherwise, use repository-native linting and formatting workflows against the affected scope in a single bulk remediation sequence

Rules:

  • always respect the repository's linting and formatting configuration
  • always check affected files or affected scopes at minimum
  • run at the appropriate root based on repo structure
  • do not bypass configured tooling with ad hoc formatting
  • do not run repetitive per-file lint or format fix cycles
  • do not duplicate or conflict with a more specific linting or formatting skill when one is available

Bun

Detect if any of these exist:

  • bun.lock
  • bun.lockb
  • workspace config indicating Bun usage
  • scripts or docs clearly using Bun

If detected:

  • Bun is the default package manager, runtime, and test entry path unless the repo clearly requires something else
  • in Bun workspaces, prefer both repo root and affected package when scripts differ
  • do not introduce npm, yarn, or pnpm commands or lockfiles unless the repo already uses them

TypeScript

Detect if TypeScript is present through tsconfig.json, package manifests, or source layout.

TypeScript validation order:

  1. project-specific typecheck script if present
  2. bunx tsc --noEmit
  3. tsc --noEmit only if already wired in the repo

Rules:

  • touched scopes must have zero TypeScript warnings and errors unless a more specific validation skill defines a stricter or more specialized workflow
  • run repo-wide checks when cheap and already stable
  • do not suppress type errors to force progress unless explicitly justified and safe
  • prototype mode still may not break type safety

Test runner detection

Detect existing test runner conventions first.

Rules:

  • follow existing repo conventions first
  • prefer bun test when Bun-native and no different repo convention exists
  • use vitest only when the repo already uses it or clearly expects it
  • do not introduce a new testing framework without explicit need

MUI and design-system detection

Detect shared design system or MUI dependencies from package manifests, component structure, or docs.

If detected:

  • explicitly hand off to stack-specific skills such as MUI/design-system skills when available
  • enforce design-system-first implementation
  • enforce composition, extension, shared primitives, and reusable boundaries
  • reject one-off visual hacks unless clearly justified

Pulumi

Detect if any of these exist:

  • Pulumi.yaml
  • Pulumi stack files
  • Pulumi TypeScript modules

If detected, Pulumi rules are mandatory.


Maintainability enforcement

Reject these patterns unless explicitly justified and documented:

  • page-local one-off components where shared or reusable boundaries clearly apply
  • duplicated data mapping logic
  • duplicated validation rules
  • ad hoc fetch or mutation handling that bypasses shared patterns
  • hardcoded design values when shared design tokens or design system mechanisms exist
  • bypassing shared primitives or repository-standard abstractions
  • shortcut architecture that increases long-term maintenance cost without explicit user approval

Principles:

  • maintainability over quick one-off fixes
  • composition and extension over copy-paste specialization
  • repo-native patterns over convenience hacks
  • shared abstractions over duplicated behavior
  • consistent developer experience over isolated local optimizations

Linting and formatting policy

Linting and formatting remediation is a deferred validation phase.

Definitions:

  • build validation: execution of the repository's compile, build, or typecheck steps to ensure the codebase is in a valid state
  • tests: execution of the repository's configured test suites according to existing conventions
  • affected scope: the minimal set of files, packages, or modules impacted by the change, expanded when required for correctness

Validation phases:

  • implementation phase: make the required changes without prematurely running deferred linting or formatting remediation
  • core validation phase: run build validation and required pre-remediation tests
  • remediation phase: run deferred bulk linting and formatting remediation until clean
  • post-remediation validation phase: if remediation modified files, re-run build validation and tests
  • completion phase: declare completion only after all applicable validations pass or limitations are documented honestly

Required sequence:

  1. Complete implementation
  2. Run build validation
  3. Run tests
  4. Run linting / formatting remediation loop
  5. If linting / formatting modified files:

- re-run build - re-run tests

  1. Declare task complete

When linting or formatting tooling is configured:

  • if a more specific linting or formatting skill is available, use that skill for execution behavior
  • otherwise, use the repository-native linting or formatting command for the affected scope

Remediation loop:

  1. Parse the linting / formatting output, for example Biome JSON
  2. Convert diagnostics into a remediation task list
  3. Resolve issues in bulk across the affected scope without introducing new violations
  4. Run the linting / formatting command again

Repeat until linting / formatting reports zero errors.

Exit criteria:

  • linting and formatting report zero errors
  • no new issues are introduced in previously clean areas
  • the remediation loop converges without oscillation

Rules:

  • run linting and formatting in bulk across the affected scope
  • do not run linting or formatting per file in repeated small cycles
  • run broader scopes when practical
  • do not claim completion if linting or formatting issues remain in touched code
  • do not hand-format around the configured formatter
  • do not create a conflicting linting or formatting workflow when a more specific skill exists
  • if linting or formatting modified files, re-run build validation and tests before declaring completion
  • remediation must be idempotent when re-run on a clean state
  • avoid oscillating fixes between rules or files
  • prefer repository-provided commands or scripts over constructing ad hoc commands

State requirements:

  • each validation phase must have a stable command set before execution starts
  • the workflow must progress forward through phases without skipping required validation
  • phase transitions triggered by remediation changes must return to post-remediation validation rather than restarting ad hoc earlier steps
  • completion is only valid from a clean post-remediation state

TypeScript policy

Type safety is mandatory.

Rules:

  • no TypeScript warnings or errors in touched scopes
  • repo-wide type validation should be run when cheap and stable
  • no unsafe type escapes without explicit rationale
  • no knowingly broken types left for follow-up unless the user explicitly permits non-production work and blockers are documented
  • do not confuse “compiles enough” with “type-safe enough”

Preferred validation order:

1. existing typecheck script
2. bunx tsc --noEmit
3. tsc --noEmit if already repo-native

Additional rules:

  • type validation must be run against the affected scope and expanded when required for correctness
  • do not rely on partial compilation success when full type safety is required by the repo

Test enforcement policy

Default expectations:

  • run targeted tests for affected scope
  • run targeted or repository-defined pre-remediation tests before deferred linting or formatting remediation
  • if linting or formatting remediation modifies files, re-run build validation and tests
  • run the full test suite before declaring completion unless a more specific validation skill defines a different completion sequence
  • follow existing repo test conventions first

Rules:

  • do not skip tests when behavior changed
  • do not claim completion when targeted tests fail
  • do not skip full-suite validation before completion unless impossible or the repo is already known unstable, and if so, document that honestly
  • if a changed area lacks tests where tests are appropriate, add or update them

For Pulumi repositories:

  • require 100% unit test coverage as reported from bun test --coverage

Package-manager purity policy

The configured or clearly detectable package manager is mandatory.

Rules:

  • if the repo uses Bun, use Bun
  • do not introduce npm, yarn, or pnpm lockfiles or commands into a Bun repo unless the repo already intentionally uses them
  • do not mix package-manager workflows casually
  • follow workspace-aware installation and execution patterns

Bun workspace behavior

In Bun workspaces:

  • prefer repo root and affected package execution when scripts differ
  • validate both the local package and relevant root-level workflows
  • do not assume package-local success implies workspace-level correctness
  • respect workspace dependency boundaries and shared packages

Design system policy

All projects must use a design-system-first approach.

Rules:

  • prefer component composition and extension over one-off components
  • prefer reusable boundaries over page-local fragments
  • prefer tokens, shared primitives, and centrally managed patterns over hardcoded styling or isolated implementations
  • when stack-specific design-system skills are available, use them explicitly
  • do not bypass the design system because implementing correctly is more work

Pulumi policy

When Pulumi is present, the following are non-negotiable:

  • no hardcoded environment values where config-driven stacks should be used
  • config-driven stack behavior
  • typed inputs and outputs
  • reusable component resources when reuse is warranted
  • preview-safe changes
  • infrastructure documentation updates for infra changes
  • 100% unit test coverage from bun test --coverage

Additional rules:

  • do not make infra changes that are operationally ambiguous without documenting the behavior
  • do not scatter infra conventions inconsistently across stacks
  • do not bypass typed abstractions when shared Pulumi component patterns are appropriate

Validation checklist

Before claiming completion, validate all applicable items:

  • repo tooling was detected correctly
  • command resolution was determined correctly and kept consistent across validation phases
  • configured package manager was respected
  • linting and formatting requirements were satisfied when configured, using a more specific skill when available
  • concern ownership was resolved correctly before execution began
  • no generalized workflow here conflicted with a more specific skill
  • touched TypeScript scopes have zero warnings/errors
  • targeted tests passed
  • deferred linting and formatting remediation was run in bulk at the correct phase
  • remediation loop converged without oscillation or repeated conflicting fixes
  • validation phases were executed in order and completion was reached from a clean post-remediation state
  • full suite was run before completion or any limitation was documented honestly
  • design-system and maintainability rules were followed
  • Pulumi-specific rules were satisfied when Pulumi exists
  • no one-off hacks were introduced without explicit justification

Output behavior

When responding after using this skill, summarize:

  • tooling detected
  • standards enforced
  • commands run
  • validation phases executed
  • affected scope determination and rationale
  • validation outcomes
  • any repo constraints that shaped the implementation
  • any honest blockers or known repo instability
  • any more specific skills that took precedence over generalized rules in this skill
  • whether deferred bulk linting and formatting remediation modified files and triggered re-validation

Do not claim standards compliance without validating it. Do not use vague phrases instead of actual command and result summaries. Always include the specific commands executed (e.g., bunx tsc --noEmit, bun test --coverage) and their outcomes when reporting on standards enforcement. If any step could not be completed, document the reason honestly and indicate any potential impact on compliance.


Specific-over-general rule

When this skill and a more specific skill both apply:

  • the more specific skill owns execution details for its concern area
  • this skill continues to govern all remaining repository-standard concerns
  • the agent must avoid running conflicting duplicate workflows
  • deferred linting and formatting remediation must follow the timing and loop owned by the more specific skill when one exists

This skill defines repository-wide standards. It should not override a more specific skill that exists specifically to execute a narrower concern more correctly.

平台分布

Codex

32.16%
按下载量换算59

Claude

28.47%
按下载量换算52

Cursor

19.76%
按下载量换算36

Gemini CLI

9.89%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills