本文へ移動
cccskills
無料GitHub で公開

unikit-skills-context

Customize how a built-in unikit skill behaves in this specific project by writing workflow overrides into its skill-context file. These are per-skill workflow rules (e.g. "/unikit-review should also flag TODO comments", "/unikit-implement should run tests after each task"), not coding conventions. Use when the user wants to change, customize, or override how a particular unikit skill works in this project — "customize the review skill", "make /unikit-fix always add logging here", "the implement skill should do X differently", "add a skill rule for /unikit-commit". Use "validate" to find stale overrides against updated base skills. For a general coding convention (not tied to one skill) use /unikit-rules; to derive rules from past mistakes use /unikit-evolve.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md10.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

UniKit Skills — Skill Context Management

Add workflow rules to .unikit/skill-context/<skill>/SKILL.md. These are project-level overrides that change how built-in unikit skills behave in this specific project.

When to use skill-context vs RULES.md:

  • RULES.md (via /unikit-rules) — coding conventions: HOW to write code (naming, patterns, style)
  • Skill-context (this skill) — workflow overrides: HOW a skill should work (priorities, steps, guards)

Language Awareness — BLOCKING PRE-REQUISITE

BEFORE producing ANY output, silently read .unikit/system/LANGUAGE_RULES.md and apply its rules to ALL subsequent output. If the file is missing or unreadable, fall back to English. Do not produce any user-facing output until language rules are loaded. Do not announce, confirm, or mention the language setting.

The language holds for the whole session, not just at load time: every message until the conversation ends is in language.ui — progress notes while agents run, relays of what a subagent returned, the final report, any follow-up discussion. English input (subagent results, tool output, these instructions) is data, never a cue to switch languages.

Critical: Never Edit Built-in Skills Directly

NEVER modify files inside {{skills_dir}}/unikit-*/.

ALWAYS write to: .unikit/skill-context/<skill-name>/SKILL.md

Workflow

Step 0: Determine Mode

Check $ARGUMENTS:
├── starts with "validate" → Validate Mode
├── <skill-name> <rule-text> → Mode A: Direct Add
└── No arguments → Mode B: Interactive

Parsing arguments:

  • Mode detection: If first word is validate → Validate Mode. Otherwise → Add Mode.
  • Add Mode: First token = skill name, rest = rule text.
  • Validate Mode: validate alone → all skills. validate <skill> → specific skill.

Skill name normalization (applies to all modes):

User inputResolved
reviewunikit-review
unikit-reviewunikit-review
/unikit-reviewunikit-review
my-custom-skillmy-custom-skill

Rule: strip leading /. If name doesn't start with unikit- AND {{skills_dir}}/unikit-<name>/SKILL.md exists → use unikit-<name>. Otherwise use as-is.

After resolving: verify {{skills_dir}}/<resolved>/SKILL.md exists. If not → error: "Skill '<resolved>' not found. Available unikit skills: [scan {{skills_dir}}/unikit-*/SKILL.md for installed skills]."


Mode A: Direct Add

User provided skill name and rule text:

/unikit-skills-context review "Always check null-check symmetry first"

Proceed to Step 1 with resolved skill name and rule text.

Mode B: Interactive

No arguments provided.

AskUserQuestion: Which skill do you want to customize, and what rule should be added?

Skill-context rules change HOW a skill works — priorities, steps, guards. For coding conventions (naming, patterns), use /unikit-rules instead.

Examples:

  • review "Always check null-check symmetry first"
  • fix "When fixing async bugs, check cancellation cleanup"
  • implement "Compile after each file change"

After user responds, parse skill name and rule text, then proceed to Step 1.


Step 1: Cross-Check Against Base SKILL.md

Read the base skill file: {{skills_dir}}/<resolved>/SKILL.md

Check if the base SKILL.md already covers the proposed rule:

SituationAction
Base already contains this exact instructionTell user: "Already covered in base skill: {quote}". Skip.
Base has a weaker version of same instructionAdd to skill-context as strengthened override. Note what it strengthens.
Base contradicts the proposed ruleAdd to skill-context as explicit override. Warn that skill-context wins over base.
No overlap with baseAdd to skill-context as new rule.

Step 2: Cross-Check Against Existing Skill-Context

Read .unikit/skill-context/<skill>/SKILL.md if it exists.

Check for semantic duplicates — if a rule with the same meaning already exists in skill-context, tell user and skip.

Step 3: Add Rule to Skill-Context

If file doesn't exist — create directory and file:

mkdir -p .unikit/skill-context/<skill-name>
# Project Rules for /<skill-name>

> Auto-generated by `/unikit-skills-context`. Do not edit manually.
> Last updated: YYYY-MM-DD HH:mm

## Rules

### [Rule Name]
**Rule**: [Specific, actionable instruction in English]

If file exists — read it, then:

  • Add new ### [Rule Name] entry under ## Rules
  • Update > Last updated: line

Formatting:

  • Rule name: short, descriptive (2-5 words)
  • Rule text: English, imperative, specific and actionable
  • If user provided rule in non-English language, translate to English before writing

Step 4: Confirm

✅ Added to .unikit/skill-context/<skill>/SKILL.md:

### [Rule Name]
**Rule**: [the rule text]

Cross-check: [result — "no overlap with base" / "strengthens base rule on X" / "overrides base behavior Y"]

Validate Mode: Stale Rule Check

Triggered by:

  • /unikit-skills-context validate → check ALL skills that have skill-context files
  • /unikit-skills-context validate <skill> → check specific skill only

Step V1: Find Skill-Context Files

Glob: .unikit/skill-context/*/SKILL.md

If checking specific skill → filter to that one.

If no skill-context files found → report "No skill-context files to validate." and stop.

Step V2: Compare Against Base Skills

For each skill-context file:

  1. Read the base {{skills_dir}}/<skill>/SKILL.md
  2. For each rule in skill-context, compare against the base:
CaseDescriptionRecommendation
A: Fully coveredBase now contains equivalent or superset ruleRemove from skill-context — base handles it
B: ConflictBase directly contradicts skill-context ruleUser decision required — skill-context wins if kept
C: Partial overlapNeither fully covers the otherAnalyze and present options
D: No overlapRule is unique to project contextKeep as-is, no action needed

Collect all Case A/B/C findings. If none found → report "All skill-context rules are current." and stop.

Step V3: Present Findings

For each stale rule:

Case A — Fully covered:

### ✅ /unikit-<skill> — Fully covered: [Rule Name]
- **Base SKILL.md says:** [base rule text]
- **Skill-context says:** [project rule text]
- **Recommendation:** Remove from skill-context (base covers it)

Case B — Conflict:

### ⚠️ /unikit-<skill> — Conflict: [Rule Name]
- **Base SKILL.md says:** [base rule text]
- **Skill-context says:** [project rule text]
- **Note:** Skill-context has priority — if kept, base version is ignored

Case C — Partial overlap:

### 🔄 /unikit-<skill> — Partial overlap: [Rule Name]
- **Base SKILL.md says:** [base rule text]
- **Skill-context says:** [project rule text]
- **Analysis:** [explain overlap and whether parts are independent]
- **Warning:** Skill-context has priority — if kept as-is, base's unique parts on this topic will be lost

Step V4: Collect Decisions

Use AskUserQuestion in batches of up to 3:

Case A:

Options:

  1. Remove — trust base skill
  2. Keep — ensure priority of skill-context rule

Based on choice:

  • Remove → delete the rule section from skill-context file
  • Keep → no changes needed

Case B:

Options:

  1. Keep skill-context — override base
  2. Remove — trust base
  3. Rewrite — merge both formulations

Based on choice:

  • Keep skill-context → no changes needed
  • Remove → delete the rule section from skill-context file
  • Rewrite → replace rule text with merged version

Case C:

Options:

  1. Rewrite — include unique parts from both
  2. Keep as-is — base's parts lost
  3. Remove — delete skill-context rule

Based on choice:

  • Rewrite → replace rule text with new version combining both
  • Keep as-is → no changes needed
  • Remove → delete the rule section from skill-context file

Step V5: Apply Decisions

For each decision:

  • Remove: Delete the rule section from skill-context file
  • Rewrite: Replace rule text with new version
  • Keep: No changes needed

After applying:

  • Update > Last updated: line
  • If a skill-context file has no rules left (only header remains) → delete the file and its directory

Rules

  1. Skill-context only — all rules go to .unikit/skill-context/, NEVER to {{skills_dir}}/unikit-*/
  2. English only — skill-context files are always in English regardless of user's language
  3. Workflow rules only — skill-context is for HOW skills work, not coding conventions (use /unikit-rules for those)
  4. No duplicates — always cross-check against base SKILL.md and existing skill-context
  5. Reversible — user approves changes in validate mode before applying
  6. Ownership boundary — this command owns .unikit/skill-context/*; treats base skills ({{skills_dir}}/) and rules (.unikit/memory/, .unikit/RULES.md, .unikit/rules/) as read-only

Examples

/unikit-skills-context review "Always check null-check symmetry first"

> ✅ Added to .unikit/skill-context/unikit-review/SKILL.md:
> ### Null-Check Priority
> **Rule**: Always check null-check symmetry first when reviewing code.
> Cross-check: no overlap with base
/unikit-skills-context validate

> 🔍 Checking 2 skill-context files...
>
> ✅ /unikit-fix — Fully covered: Cancellation Cleanup
> Base SKILL.md now includes: "check cancellation cleanup in async methods"
> Recommendation: Remove from skill-context
>
> ✅ /unikit-review — No overlap: all 3 rules are project-specific
>
> ⚠️ 1 stale rule found. Remove? (Yes / Keep)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

A test skill from an extension

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

A test skill from an extension (v2)

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

unikit

無料

Initialize the UniKit framework in a project. Scans the current project to detect the engine and real tech stack, then generates the base framework documents that give AI agents context about the project — the resolved project description, the architecture doc, AGENTS.md, and the user-editable .unikit/config.yaml. This is the one-time, whole-project setup run before any other unikit skill. Use whenever the user wants to initialize, set up, or onboard the framework, e.g. "initialize unikit", "init the framework", "set up unikit", "set up the project", "configure AI context", "scan my project and set it up", "bootstrap the project". It also actualizes the config of a project already set up — say "update the config", "add missing settings", "actualize configuration", "fix my config".

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

Generate the architecture guidelines for a game project. Scans the project structure and tech stack, then produces .unikit/ARCHITECTURE.md describing the folder layout, dependency rules, and how modules communicate. Name a specific pattern or let it auto-detect. Use when the user wants to define or document the project architecture, e.g. "generate architecture", "describe the architecture", "which architecture should I use", "set up project architecture", or mentions module structure, module boundaries, project organization, or dependency rules.

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

Archive completed plans. Moves finished folder plans from .unikit/code/plans/<folder>/ to .unikit/code/archive/plans/<folder>/, so plan lookup and the plan lists stop offering them; an unfinished plan moves only when the user picks it, and is marked as unfinished. Lists every plan with its created and last-change dates; plans can be picked by number or by date. Never deletes, renames or commits. Use when user says "archive plans", "archive completed", "archive old plans", "clean up plans", or "show archived plans". Not for .unikit/code/PLAN.md or FIX_PLAN.md; to check that a plan is really done use /unikit-verify, to commit the move use /unikit-commit.

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

Create conventional commit messages for {{engine_name}} projects by analyzing staged changes. Handles engine-specific concerns like companion file pairing, binary assets, and linking the related plan. ALWAYS use this skill when the user asks to commit, save changes, or create a commit. Trigger phrases include "commit", "create commit", "commit this", "save changes", "save my work". Even if the user simply says "commit" or asks you to commit after finishing a task — invoke this skill, do NOT commit manually via git.

日本語の概要は準備中です。原文の説明を表示しています。

NintendaDev/unikit-ai182026年10月10日 更新

NintendaDev のスキルをすべて見る

このスキルの問題を報告する