vibe-coding-standards-skill
4
总安装量
2
周安装量
#49175
全站排名
安装命令
npx skills add https://github.com/pixora-dev-ai/vibe-coding-standards-skill --skill vibe-coding-standards-skill
Agent 安装分布
kilo
2
windsurf
2
zencoder
2
pi
2
trae
2
Skill 文档
Coding Standards Enforcer
This skill provides a complete framework for maintaining high code quality and architectural consistency across the project.
Core Workflows
1. Code Review & Auditing
Before approving any code, validte it against the Master Rules.
- Primary Reference: See references/master-rules.json for the “Critical” checks (Architecture, Security, Performance).
- Rule Index: See references/rules-index.json for a full list of specialized rule sets.
2. Mandatory Enforcement & Detection
To actively enforce these rules, use the bundled detection scripts. These MUST be run during CI or pre-commit.
- Architecture Audit: Run
scripts/audit/audit_engine.py .- Scans for forbidden patterns (e.g., hardcoded secrets, relative imports, bad dependencies).
- Configured via
scripts/audit/detectors_config.json.
- Linter Config: Run
scripts/audit/generate_eslint.sh- Generates a strict
.eslintrc.jsthat enforces clean code, accessibility, and hooks rules at the IDE level.
- Generates a strict
3. Feature Implementation
When building new features, consult the relevant domain-specific rules:
- UI/UX & Components: See references/ui-ux-engineering.rules.json and references/component-modularity.rules.json.
- State & Data Flow: See references/dependency-architecture.rules.json.
- Styling: See references/styling-tokens.rules.json.
- Assets: See references/assets-handling.rules.json.
4. Project Setup
To initialize these rules in a new repository:
- Run
scripts/init_project_rules.shto configure the project name and tokens. - Use
assets/project-config.template.jsonto customize the strictness and tech stack.
Advanced References
- AI & Intelligence Architecture: See references/ai-core-architecture.md for integrating AI modules.
- Security & Privacy: See references/security-privacy.rules.json.
- Performance: See references/performance.rules.json.
- Testing: See references/testing.rules.json.
[!NOTE] Always prefer the “Single Source of Truth” defined in
master-rules.jsonif there is a conflict.