nigoh-nigoh-astro-instructions.ocm.json json Copy{
"ocm": "1",
"id": "nigoh-nigoh-astro-instructions",
"kind": "skill",
"name": "astro",
"description": "Astro コンポーネント規約",
"publisher": "nigoh",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Astro コンポーネント規約"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/nigoh/nigoh",
"path": ".github/instructions/astro.instructions.md",
"ref": "156b37b11e92de477c6625f011f89cf248fffef2",
"url": "https://github.com/nigoh/nigoh/blob/156b37b11e92de477c6625f011f89cf248fffef2/.github/instructions/astro.instructions.md",
"key": "nigoh/nigoh/.github/instructions/astro.instructions.md"
},
"applies_to": "**/*.astro"
},
"instructions": "# Astro コンポーネント規約\n\n- コンポーネントファイル名は PascalCase(例: `Header.astro`, `BaseLayout.astro`)\n- Props は frontmatter 内で `interface Props` を定義し型安全にする\n- `import.meta.env.BASE_URL` で base パスを取得し、リンクやアセットパスに使用する\n- レイアウトは `<slot />` でコンテンツを受け取る\n- Tailwind CSS のユーティリティクラスを使用する(インラインスタイル禁止)\n- セマンティック HTML 要素を優先する(`<header>`, `<nav>`, `<main>`, `<section>`, `<footer>`)\n- 新コンポーネント追加時は `specs/components/` に仕様を作成する",
"cost": {
"context_tokens": 99
}
}