feat: add distributable agent skills and rule-authoring workflow - #472
Open
YusukeHirao wants to merge 15 commits into
Open
feat: add distributable agent skills and rule-authoring workflow#472YusukeHirao wants to merge 15 commits into
YusukeHirao wants to merge 15 commits into
Conversation
YusukeHirao
requested review from
arktds,
dz-furukawa,
teppei-d and
yusasa16
as code owners
August 12, 2026 13:44
Add seven skills (dzero-tech-selection, dzero-design-to-code, dzero-css, dzero-js, dzero-a11y, dzero-html, dzero-review) distilled from the guideline sources, distributed to case projects via the skills CLI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Non-distributed skill that guides rule triage (first-principles questions, placement classification) and authoring conventions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Explain the skill list, distribution mechanism, onboarding steps for existing projects, and the update workflow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Extend cspell, prettier, and textlint globs, and register the dzero word in cspell.json. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Formatting-only normalization produced by running yarn lint (semicolon, table padding, trailing whitespace). No content changes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Rules that stylelint/markuplint already enforce (BEM flat selectors, declaration order, logical properties, value formats, heading level skips, multiple classes) are guaranteed by the lint harness and need not be restated as principles. Codify this policy in skills/README.md and the rule-authoring triage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Keep the version out of the scripts entry so renovate can manage it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Statements that do not change agent behavior ("write with
understanding", WCAG four-principles preamble) waste tokens per
Anthropic's skill authoring guidance (Claude is already very smart;
concise is key). Keep only project facts (WCAG 2.2 / WAI-ARIA 1.2
baseline) and convert the practical core of "prepare alternatives"
into a trigger-action rule for unexpected browser bugs. Codify the
policy in skills/README.md and rule-authoring.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
YusukeHirao
force-pushed
the
feature/agent-skills
branch
from
August 13, 2026 01:14
3566d36 to
b2987bc
Compare
Verified each rule against the actual @D-Zero linters configs (stylelint-config, markuplint-config, eslint-config on origin/dev) and empirical markuplint runs, then removed skill entries that the lint harness already enforces: - ID selector ban (stylelint selector-max-id: 0) - one-component-per-file / filename-class match (@d-zero/component) - hardcoded color / z-index values (stylelint warns to use variables; token rule rescoped to non-color values) - element class format, ancestor-element crossing, c-content-main constraint (markuplint class-naming, verified as errors) - native + ARIA attribute duplication (markuplint wai-aria, verified) - br element ban (markuplint disallowed-element) - unlabeled duplicate landmarks (markuplint landmark-roles, verified) Also fixed a false claim: multiple component classes on one element are NOT detected by Markuplint (verified), so the rule stays as a skill rule without the parenthetical. Kept rules verified as NOT lint-covered: role="none" on empty alt, aria-hidden on meaningful img, content outside landmarks, boolean attribute values, line-height in px. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The per-skill レビュー観点 sections merely restated the implementation norms as questions, creating a dual-maintenance burden (every norm edit had to be mirrored). Reviews now check against the norms directly: - remove レビュー観点 from dzero-css / dzero-html / dzero-a11y / dzero-js / dzero-design-to-code - fold the one non-derivable item (never remove focus styles such as outline: none) into the dzero-a11y focus norm - dzero-review now instructs checking changes against each skill's norms; the lint-scope note remains there as step 4 - update skills/README structure convention and the rule-authoring placement table accordingly Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- dzero-tech-selection: after implementing, always verify rendering, behavior, and interactions in a browser (not by reading code alone) - dzero-review: add a browser verification step before the lint check The concrete tooling is left to each project's environment instructions (the scaffold template designates the DevTools MCP). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The branch extends textlint targets to .claude/**, so the git skill added on dev via #476 is now linted and violated jtf-style 1.1.3 (bullet-list punctuation consistency). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
yusasa16
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
AI コーディングエージェント(Claude Code / Cursor)向けのスキルをこのリポジトリで管理・配布できるようにします。ガイドラインの規範をエージェントが実装時・レビュー時に参照できる形に蒸留した
skills/ディレクトリを追加し、skills CLI による配布(mainブランチが配布チャネル)を前提とした構成にしています。変更内容
配布スキル(
skills/、7 つ)dzero-tech-selectiondzero-design-to-codedzero-css/dzero-js/dzero-a11y/dzero-htmlsrc/の規範から lint で担保できない設計判断系を蒸留dzero-reviewskills/README.mdに記載(frontmatter は Cursor 互換のためname/description/licenseのみ、根拠のない一般論の禁止、暫定ルールの削除メモ運用)line-heightのpx禁止)は linters リポジトリへの追加を提案予定で、導入までの暫定として削除メモ付きで記載メンテナー用メタスキル(
.claude/skills/rule-authoring、非配布)新しいルール案のトリアージ(そもそもルール化すべきか → 抽象度は適正か → 恒常的原則か一時的補正か → 宛先は誰か)と置き場所分類・執筆を補助します。
ドキュメント・設定
src/agent-skills.md: スキル一覧・配布の仕組み・既存プロジェクトへの導入手順・更新手順のページを追加(サイドバーにも追加)package.json/cspell.json: lint 対象にskills/と.claude/を追加し、dzeroを辞書に登録関連
main)。mainへの反映後、既存案件はsrc/agent-skills.mdの手順で導入できます動作確認
yarn lint/yarn build通過npx skills@1.5.22 add <ローカルパス> --skill '*' --agent claude-code --copy -yで 7 スキルが.claude/skills/に展開・skills-lock.json生成・再実行での上書き更新を確認🤖 Generated with Claude Code