coding-principles
БесплатноБез исполняемых скриптовНе проверенEnforces engineering, architecture, public API, and code quality standards distilled from human reviewer feedback across A2UI pull requests. Use when…
от a2ui-project★ 19 155 звёзд на GitHubОб этом скилле
Skill: coding-principles
Purpose: Core engineering, architecture, and code quality standards established by human reviewers across A2UI pull requests. Used by agents when authoring changes, refactoring code, addressing review feedback, or reviewing pull request diffs to maintain repository health across all languages.
Specification and Blueprint Grounding
Before modifying or implementing code in any language, consult the authoritative specifications and blueprints:
- Protocol JSON Schemas:
specification/v0_9_1/json/andspecification/v1_0/json/define wire-format envelopes, types, and validation constraints. - Component Catalogs:
catalogs/basic/v1/catalog.jsondefines standard components, properties, and function signatures. - Core Module Blueprint:
a2ui_core.blueprint.mdspecifies state containers (DataModel,SurfaceModel),MessageProcessor, JSON pointer rules, auto-vivification, and error semantics. - Agent SDK Blueprint:
a2ui_agent.blueprint.mdspecifiesA2uiGenerator,A2uiRequestProcessor, inference format strategies, and prompt generation. - Framework Adapter Blueprint:
a2ui_framework_adapter.blueprint.mdspecifies view mapping, reactive subscription lifecycles, and layout behavior. - Typesafe Builder Blueprint:
typesafe_builder_api.blueprint.mdspecifies fluent builder hierarchies. - Reference Implementation:
typescript/core/web_core/serves as the canonical behavioral reference for edge-case resolution.
Progressive Discoverability: Two-Level Subskill Routing
Because the A2UI repository spans multiple languages (typescript/, python/, dart/, swift/) and shared specifications (specification/, catalogs/), agents must use a two-level progressive discovery workflow:
- Level 1 (Cross-Language Subskills): Activate language-agnostic principles that govern pull request scope, software design, public API boundaries, specification immutability, and changelogs across the entire monorepo.
- Level 2 (Language-Specific Routing): Route by the programming languages modified in the diff to load only the subskills and language guides relevant to those languages.
Step 1: Inspect the PR Diff
Review the modified files and categories of changes:
# In an active branch:
git diff main --stat
Identify both:
- Cross-cutting functional areas impacted (public exports, specifications, catalogs, changelogs, PR structure).
- Programming languages and directories touched (
typescript/,python/,dart/,swift/,samples/,tools/).
Step 2: Activate Cross-Language Subskills (Language-Agnostic)
Evaluate the cross-language subskills below against the diff and read any activated document in full:
1. PR Hygiene, Atomicity, Scope Control & Software Design
- Skill:
pr-hygiene - Activate if: Always applicable when authoring, preparing, or reviewing a pull request.
2. Public API Boundaries, Cross-Framework Design & Changelogs
- Document:
subskills/public-api-and-cross-framework-design.md - Activate if:
- Any package entrypoint or facade (
index.ts,public-api.ts,package.json,__init__.py,lib/*.dart, or public Swift API), or anyCHANGELOG.mdis modified. - Any new class, function, interface, type, model, or DI token is exported.
- Renderer APIs, registration helpers, or adapters across
@a2ui/angular,@a2ui/lit,@a2ui/react,a2ui_flutter, orA2UISwiftUIare modified. - Imports between sibling packages change.
- Files under
specification/orcatalogs/(schemas, catalog fixtures, or examples) are modified or added. - Breaking changes or public API deprecations are introduced.
- A new source file is added (verify it has a single responsibility rather than acting as a catch-all
types.*orutils.*file).
- Any package entrypoint or facade (
3. Updating Changelogs (CHANGELOG.md)
- Skill:
update-changelog - Activate if: Any
CHANGELOG.mdis modified or a published package's public API or consumer-observable behavior changes.
Step 3: Route by Language for Language-Dependent Principles
Inspect the file extensions and directories in git diff main --stat and follow the matching language route(s) below. Only load routers and guides for languages present in your diff:
| Language / Ecosystem | Matching Paths & Extensions | Progressi
Установить coding-principles в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coding-principles?
Enforces engineering, architecture, public API, and code quality standards distilled from human reviewer feedback across A2UI pull requests. Use when authoring new code, refactoring, addressing review feedback, or reviewing PR diffs. Don't use for release publishing or spec blueprint generation without code or PR changes.
Как установить скилл coding-principles?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coding-principles запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic