スキル一覧に戻る
coveo

creating-instructions

by coveo

Coveo UI kit repository, home of @coveo/headless, @coveo/atomic, and more.

59🍴 39📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: creating-instructions description: Create VS Code Copilot custom instruction files for ui-kit. Use when defining coding standards, conventions, or context that should automatically apply to specific file patterns. license: Apache-2.0 metadata: author: coveo version: "1.0"

Creating Custom Instructions

Process

Step 1: Plan the Instruction

Before creating, check for overlap and determine scope:

# List existing instructions with patterns
for f in .github/instructions/*.instructions.md; do
  echo "=== $(basename $f) ==="
  grep "applyTo:" "$f"
done

Answer:

  1. What file pattern(s) should this apply to?
  2. Does this overlap with existing instructions?
  3. What are the 3-5 most critical rules?

Decision:

  • Exact match exists → Modify existing (see "Modifying" below)
  • Partial overlap → Extend existing OR create with distinct scope
  • No overlap → Create new

Step 2: Initialize

node .github/skills/creating-instructions/scripts/init_instruction.mjs {name}

# With custom pattern
node .github/skills/creating-instructions/scripts/init_instruction.mjs {name} --apply-to "glob-pattern"

Creates: .github/instructions/{name}.instructions.md with frontmatter and TODO sections.

Naming conventions:

ScopePatternExample
Package{package}.instructions.mdatomic.instructions.md
File typegeneral.{type}.instructions.mdgeneral.typescript.instructions.md
Teststests-{package}.instructions.mdtests-atomic.instructions.md
Technology{tech}.instructions.mdmsw-api-mocking.instructions.md

See naming-conventions.md for details.

Step 3: Complete the Instruction

Fill in the generated file:

  1. Start with the most critical rule
  2. Organize by topic with clear headings
  3. Provide concrete code examples
  4. Reference related files with Markdown links
  5. Document hierarchy if conflicts possible

For format details, see SPECIFICATION.md. For writing guidance, see best-practices.md. For examples, see examples.md.

Step 4: Validate

node .github/skills/creating-instructions/scripts/validate_instruction.mjs .github/instructions/{name}.instructions.md

Manual checks:

  • Most critical rule appears first
  • Concrete examples provided
  • No duplicated content
  • Hierarchy documented if needed

Modifying Existing Instructions

Extending:

  1. Read existing file to understand scope
  2. Add new sections logically
  3. Re-run validation

Changing scope:

  1. Update applyTo frontmatter
  2. Check for new conflicts
  3. Update hierarchy documentation

Renaming:

  1. Rename file following conventions
  2. Search for references: grep -r "{old-name}.instructions.md" .github/
  3. Update references
  4. Re-validate

Deprecating:

  1. Verify no active references
  2. If merging, copy unique content to target
  3. Delete file

Existing Instructions

FilePatternPurpose
general.instructions.md**Core principles
general.typescript.instructions.md**/*.ts, **/*.tsxTypeScript rules
atomic.instructions.mdpackages/atomic/**Atomic conventions
tests-atomic.instructions.md**/atomic/**/*.spec.tsAtomic test patterns
playwright-typescript.instructions.md**/*.e2e.ts, **/*.spec.tsE2E patterns
msw-api-mocking.instructions.mdpackages/atomic/**/*.stories.tsxStorybook MSW

Update this table when creating new instructions.

Reference Documentation

ReferenceWhen to Load
SPECIFICATION.mdVS Code instruction format, frontmatter, patterns
best-practices.mdWriting effective instructions, terminology
examples.mdReal-world instruction examples
naming-conventions.mdFile naming patterns

Scripts

ScriptPurpose
init_instruction.mjsInitialize with template
validate_instruction.mjsValidate structure per spec

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です