Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Agent Skills NinjaNew to Visual Studio Code? Get it now.
Agent Skills Ninja

Agent Skills Ninja

yamapan

|
1,941 installs
| (3) | Free
Search, install and manage Agent Skills for GitHub Copilot, Claude Code and AI coding assistants
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🥷 Agent Skills Ninja

Search, Install, and Manage Agent Skills for AI Coding Assistants

Status VS Marketplace Installs License GitHub Stars

GitHub Copilot • Claude Code • Cursor • Windsurf • Cline

Features • Installation • Usage • Copilot Chat • Settings • Development

Japanese / 日本語版はこちら


Output Formats

Format Options

Format Instruction file Catalog file (refCatalogFormat)
🔗 Ref IMPORTANT + link only Separate file: full / compact / legacy
✅ Full IMPORTANT + detailed table —
📦 Compact IMPORTANT + compressed index —
🕰️ Legacy Simple table (no IMPORTANT) —
🚫 None Nothing is written Removed

Pick None when you want to keep managing skills here but write the list yourself. The managed block and any catalog this extension generated are removed, and text you wrote outside the block is kept.

IMPORTANT Prompt

The ref, full, and compact formats include the IMPORTANT prompt that instructs agents to prioritize skill files. ref keeps the always-loaded instruction file lighter by keeping only the routing prompt and catalog link in the instruction file, while moving the detailed catalog into a separate Markdown file. Use skillNinja.refCatalogFormat to choose whether that linked catalog is full, compact, or legacy.

> **IMPORTANT**: Prefer skill-led reasoning over pre-training-led reasoning.
> Read the relevant SKILL.md before working on tasks covered by these skills.

Example Output - Ref Format (Default)

<!-- agent-ninja-START -->

## Agent Skills

> **IMPORTANT**: Prefer skill-led reasoning over pre-training-led reasoning.
> See [Agent Skills](https://github.com/aktsmm/vscode-agent-skill-ninja/blob/HEAD/.github/skills/README.md) before working on tasks covered by these skills.

<!-- agent-ninja-END -->

The catalog is written to .github/skills/README.md. Its internal format is controlled by skillNinja.refCatalogFormat (full by default, or compact / legacy).

For workspace skills, relative skillNinja.refCatalogPath values are resolved from the workspace root. For user/global skills, they are resolved from the instruction file directory so personal instruction files stay portable.

Example Output - Full Format

<!-- agent-ninja-START -->

## Agent Skills

> **IMPORTANT**: Prefer skill-led reasoning over pre-training-led reasoning.
> Read the relevant SKILL.md before working on tasks covered by these skills.

### Skills

| Skill                                | Description                                         |
| ------------------------------------ | --------------------------------------------------- |
| [docx](https://github.com/aktsmm/vscode-agent-skill-ninja/blob/HEAD/.github/skills/docx/SKILL.md) | Process Word documents (.docx). Use for .docx files |
| [pdf](https://github.com/aktsmm/vscode-agent-skill-ninja/blob/HEAD/.github/skills/pdf/SKILL.md)   | PDF manipulation toolkit. Extract text, create PDFs |

<!-- agent-ninja-END -->

How to Change Format

Settings → Output Format → Select ref, full, compact, or legacy


🥷 Features

📁 Workspace Skill Management

  • Manage SKILL.md files across four scopes: workspace, user/global, read-only installed extensions, and optional built-in
  • Use skillNinja.skillsDirectory as the primary managed workspace root, add repo-local roots with skillNinja.additionalSkillRoots, and auto-discover extra user/global roots from VS Code Agent Skill Locations
  • Automatically sync managed skills to the closest instruction file for each writable root
  • Create new skill from template

🔍 Skill Search & Discovery

  • Search skills by keyword (local & GitHub)
  • Multi-keyword Search - Scored by name, path, description relevance
  • Parallel Fetch - Fast results with 50 concurrent requests
  • Fallback Search - Auto-retry with fewer keywords if no results
  • Search results with descriptions & category tags
  • Star counts & organization badges
  • Install / Preview / Favorite directly from search results

📦 Install & Manage

  • Double-click a remote skill row to install it into the workspace skill root by default (skillNinja.skillsDirectory, default: .github/skills)
  • Optional single-click install toggle for Browse view (skillNinja.singleClickInstall)
  • Install target picker for toolbar/search/preview flows and other cases with multiple managed roots (workspace or user/global)
  • Auto-update instruction file (AGENTS.md / copilot-instructions.md / CLAUDE.md)
  • Table Format - Skills displayed in table with "When to Use" column
  • Auto-extract "When to Use" - Extracted from SKILL.md ## When to Use section
  • Edit Description - Right-click to customize skill description
  • Uninstall functionality
  • Update Changed Skills - Update only skills whose upstream contents changed; unchanged skills and local edits stay untouched. Changed skills overwrite local edits after confirmation. Existing skills without a comparison baseline need an explicitly confirmed first sync. Local skills without an upstream (for example, ones you created in the workspace) are counted as "local-only (not updated)" instead of deferred and are listed only in the details.
  • Upstream Renames - If a skill's original path disappears, a unique SKILL.md rename verified against its recorded commit and current GitHub revision is offered as a separate install. The old copy stays untouched; no install occurs without confirmation. Ambiguous or unverifiable changes remain deferred. If installation succeeds but view/instruction refresh fails, regenerate skill output; an incomplete installation is reported separately.
  • Unindexed Installs - A skill installed under a new name is still checked against its recorded upstream revision even before the source index lists it. Unchanged contents stay unchanged; upstream changes remain deferred until the source index is refreshed.
  • Reinstall All - Explicitly force a batch reinstall for repair (with auto index update)
  • Source-aware Missing Index Recovery - When reinstall hits missing index entries, the extension now updates only the affected source when it can be identified, instead of always refreshing every source
  • Partial Failure Warnings - Batch reinstall flows now warn with succeeded/failed counts when only part of the selection could be reinstalled
  • Root-level Inline Actions - Each writable skill root row exposes inline Regenerate Skill Output (regenerates AGENTS.md / copilot-instructions.md / CLAUDE.md or the linked ref catalog), and rows that contain at least one remote-backed skill also show Update Changed Skills in This Root. Forced reinstall remains in the context menu.
  • Install Feedback - NEW badge, status bar notification, auto-select in tree view
  • Open Folder - Quick access to installed skill folder
  • Explain Skill State - Diagnose registration source, metadata path, coexistence owner, and instruction target from the tree item context menu
  • Invocation Modes - Skills with disable-model-invocation: true (manual only, /name) or user-invocable: false (model only) are marked in the tree with a distinct icon and label. Filter the views by mode, copy or insert /name in chat, or switch a skill's mode from the context menu. Manual-only skills are left out of the generated skill list by default (skillNinja.explicitOnlySkillsInInstructions).
  • Index Integrity Check - Auto-detect missing skills and prompt for index update

🔧 Multi-Tool Support

  • Auto-detection of AI tools in workspace (Cursor, Windsurf, Cline, Claude Code, GitHub Copilot)
  • Automatic format selection based on detected tool
  • Manual override available in settings
  • Supported output formats:
    • Markdown (AGENTS.md, CLAUDE.md, copilot-instructions.md)
    • Cursor Rules (.cursor/rules/)
    • Windsurf Rules (.windsurfrules)
    • Cline Rules (.clinerules)

💬 GitHub Copilot Chat Integration

  • @skill commands for direct chat operations
  • /search, /install, /list, /recommend
  • Project-based skill recommendations

🤖 MCP Tools Integration

  • Automatically available as tools in Agent Mode
  • 11 Tools: #searchSkills, #installSkill, #uninstallSkill, #listSkills, #reinstallSkills, #recommendSkills, #updateSkillIndex, #webSearchSkills, #addSkillSource, #removeSkillSource, #localizeSkill
  • Trust badges (Official / Curated / Community)
  • Auto-update instruction file on install

🌐 Multi-language & UI

  • Japanese / English UI (auto-detect + manual switch)
  • Skill preview in Webview
  • Preview links open external pages, relative files/folders on GitHub, and in-page headings
  • Favorites feature

🎬 Demo

Demo

📥 Installation

VS Code Marketplace

ext install yamapan.agent-skill-ninja

Or search for "Agent Skills Ninja" in VS Code Extensions (Ctrl+Shift+X)

Manual Installation

  1. Download .vsix from Releases
  2. In VS Code: Ctrl+Shift+P → Extensions: Install from VSIX...
  3. Select the downloaded .vsix file

🧩 Companion Extension

  • Agent Resources Ninja - Resource-oriented companion extension for managing skills plus agents, prompts, instructions, hooks, MCP config resources, and related AI coding resources.
  • GitHub: https://github.com/aktsmm/vscode-agent-resources-ninja

📚 Included Skill Sources

Preset index includes skills from official, curated, and community sources out of the box.

Source Type Description
anthropics/skills Official Anthropic official Claude Skills
openai/skills Official OpenAI official Codex Skills (1.7k+)
google/skills Official Google official product skills
github/awesome-copilot Official GitHub official Copilot resources
MicrosoftDocs/Agent-Skills Official Microsoft official Azure agent skills
ComposioHQ/awesome-claude-skills Curated Curated Claude Skills list
obra/superpowers Community High-quality skills & agents
muratcankoylan/Agent-Skills-for-Context-Engineering Community Context Engineering skills (5k+)
danielmiessler/LifeOS Community LifeOS Skills - PAI successor
EveryInc/compound-engineering-plugin Community Compound Engineering (3.5k+)
Wirasm/prp Community PRP (Prompt Recipe Patterns)
qdhenry/Claude-Command-Suite Community Claude commands & skills
Yeachan-Heo/oh-my-codex Community OMX Codex workflow skills

Use Update Index to refresh the latest skills and metadata from these sources.

🥷 Usage

Sidebar Operations

  1. Click the spiral shuriken icon in the Activity Bar
  2. Installed Skills - Workspace managed skills grouped by skill root
  • Workspace Skills: managed under skillNinja.skillsDirectory (default: .github/skills) plus any skillNinja.additionalSkillRoots
  • Newly installed skills (temporary badge)
  • Toolbar: Skill Output / Regenerate Skill Output / Create / Refresh View / Settings
  • Each writable root row also exposes inline Regenerate Skill Output on the right edge, and roots with at least one remote-backed skill also show Update Changed Skills in This Root
  • If a remote-backed skill is no longer present upstream, reinstall flows can mark it as disabled for future reinstall checks so it no longer blocks batch operations
  • In the workspace view, Skill Output opens the workspace root directly without showing the all-roots picker
  • In ref mode, Skill Output opens the linked catalog; in full / compact / legacy, it opens the instruction file itself
  • Empty state: Search / Create / Open Skill Output quick links
  • Open skill folder or file from the workspace root
  • A skill whose folder sits inside another skill's folder (a SKILL.md under another SKILL.md) is shown as a child of that skill in the Installed and User / Global views, with its path relative to the parent. It is read through its parent, so it is never marked "Not registered", is not offered Register / Unregister, and is left out of the generated skill list
  1. User / Global Skills - Personal skills grouped by skill root, plus read-only installed extension skills and read-only built-in skills
  • User / Global Skills: discovered from standard personal roots (~/.copilot/skills, ~/.claude/skills, ~/.agents/skills) plus VS Code Agent Skill Locations
  • Installed Extensions: read-only skills discovered from skill folders bundled with installed VS Code extensions, grouped by extension first and then by variant/root
  • Built-in Skills: read-only group for Copilot / VS Code packaged skills, grouped first by provider/origin (for example GitHub Copilot Chat, GitHub Copilot CLI, VS Code) and then by variant/root (for example Prompts, Skills, Package (Universal)); this group is shown by default and can be hidden from Settings
  • Root nodes use concise home/product labels, while counts and full paths stay in the secondary description / tooltip
  • Toolbar: Skill Output / Regenerate Skill Output / Create / Refresh View / Settings
  • Each writable root row also exposes inline Regenerate Skill Output on the right edge, and roots with at least one remote-backed skill also show Update Changed Skills in This Root, so GitHub Copilot Home / Claude Home / Global Agent Home can be updated without opening the command palette
  • Legacy source: unknown skills without a remotePath are treated as individual lookup candidates only; they no longer make batch reinstall actions look reinstallable by themselves
  • In the user/global view, Skill Output opens the default writable user/global root directly without showing the all-roots picker Default priority: VS Code user customizations, then Copilot home, Claude home, and finally the global agent home
  • In ref mode, Skill Output opens the linked catalog; in full / compact / legacy, it opens the instruction file itself
  • Empty state: Create / Settings / Open Skill Output quick links
  • Open skill folder or file from any visible user/global root
  1. Remote Skills - Browse skills by source
    • Favorites section at top
    • Sources sorted: Official → Curated → Community
    • Shows installed status with green icons
  • Double-click a row to install to the workspace root by default, or use the inline Install action when you want the root picker

  • Toolbar: Search / Web Search / Update Index / Add Source / Create / Settings

  • Add Source accepts a repository root URL or a GitHub folder/file URL inside that repository. The repository root is detected automatically.

  • Private source repositories are supported when GitHub authentication has access to read that repository's contents.

Icon Legend

Icon Meaning
check (green) Installed skill
NEW badge Recently installed (temporary badge)
star-full (yellow) Favorites section
verified (blue) Official source (Anthropic, OpenAI, GitHub, Microsoft)
star (yellow) Curated awesome-list
repo Community repository
warning (red) Incomplete install - reinstall to restore the content

Command Palette

Command Description
Agent Skills Ninja: Search Skills Search and install skills
Agent Skills Ninja: Update Index Update index from all sources
Agent Skills Ninja: Search on GitHub Search skills on GitHub
Agent Skills Ninja: Browse by Category Pick a category and narrow the skill list
Agent Skills Ninja: Add Source Repository Add new source repository
Agent Skills Ninja: Remove Source Repository Remove source repository
Agent Skills Ninja: Uninstall Skill Uninstall a skill
Agent Skills Ninja: Show Installed Skills Show installed skills
Agent Skills Ninja: Show Favorites Show only the skills you marked as favorites
Agent Skills Ninja: Recently Installed Show the skills installed most recently
Agent Skills Ninja: Create New Skill Create new workspace skill
Agent Skills Ninja: Update Changed Skills in All Managed Roots Update changed upstream skills only (skillNinja.updateAll); first sync requires confirmation
Agent Skills Ninja: Reinstall All Skills Force reinstall all skills from latest source for repair
Agent Skills Ninja: Repair Incomplete Skills Reinstall only the skills recorded as incomplete or partial
Agent Skills Ninja: Uninstall All Skills Uninstall all skills (with confirmation)
Agent Skills Ninja: Uninstall Multiple Skills Select multiple skills to uninstall
Agent Skills Ninja: Reinstall Multiple Skills Select multiple skills to reinstall
Agent Skills Ninja: Open Skill Output Choose a managed root, then open the linked catalog in ref, or the instruction file in other formats
Agent Skills Ninja: Regenerate Skill Output Regenerate the selected root's skill output files manually (AGENTS.md, copilot-instructions.md, CLAUDE.md, or the linked ref catalog)
Agent Skills Ninja: Clean Up Orphan Instruction Block Remove leftover skill-ninja / resource-ninja / agent-ninja marker blocks from the output files
Agent Skills Ninja: Open Skill Folder Open installed skill folder in OS
Agent Skills Ninja: Resume Deferred Source Index Update Resume the source updates a GitHub rate limit or the per-run update cap left pending
Agent Skills Ninja: Clear GitHub Token (SecretStorage only) Remove only the GitHub token stored in VS Code SecretStorage so other authentication sources can be retried
Agent Skills Ninja: Explain Skill State Show skill registration details and the active GitHub token source without revealing the token value
Agent Skills Ninja: Show Coexistence Status Show the coexistence mode and which extension currently writes the output files
Agent Skills Ninja: Recompute Coexistence Ownership Re-evaluate coexistence ownership after installing or removing the sibling extension
Agent Skills Ninja: Configure Output Targets Pick which locations get the skill list, and override the format for one location
Agent Skills Ninja: Open Workspace Skill Output Open the workspace skill output directly
Agent Skills Ninja: Open User/Global Skill Output Open the user/global skill output directly
Agent Skills Ninja: Show Built-in Skills Show read-only built-in skills in the tree
Agent Skills Ninja: Filter and Sort Skills Filter the Installed and User/Global views by invocation mode (auto / manual-only / model-only) and sort them by name or invocation mode
Agent Skills Ninja: Filter and Sort Browse Skills Filter the Browse view by invocation mode and sort it by name or GitHub stars
Agent Skills Ninja: Install Multiple Skills Pick several skills in a checkbox picker (it follows the Browse filter and sort; installed skills cannot be selected) and install them together
Agent Skills Ninja: Open Settings Open this extension's settings
Agent Skills Ninja: Reset Settings Reset this extension's settings to their defaults
Agent Skills Ninja: Report a Bug Open a prefilled GitHub issue

Row Actions (right-click)

These palette commands are also available by right-clicking a row in the tree.

Action Row
Install Skill remote skill row
Install Bundle bundle row
Install Selected Skills several remote skill rows selected with Ctrl / Shift + click
Install All Shown Skills from This Source source row (only the skills that match the Browse filter)
Reinstall Skill installed skill row
Preview Skill remote skill row
Open SKILL.md installed skill row
Edit When to Use installed skill row
Toggle Favorite remote skill row
Open on GitHub skill or source row
Copy URL skill or source row
Copy Path installed skill or root row
Open in Terminal installed skill or root row
Copy Slash Command installed skill row
Insert Slash Command in Chat installed skill row
Set Invocation Mode... writable installed skill row

The view title also has Filter and Sort Skills (Installed and User/Global) and Filter and Sort Browse Skills (Browse). One picker covers both: pick an invocation mode to filter (all / auto / manual-only / model-only) and a sort order (default / name / invocation mode for the installed views, default / name / most stars for Browse). Changes apply immediately, the filled icon and a message above the tree show that a filter or sort is active, and the choice is remembered per workspace.

Browse reads each skill's disable-model-invocation, user-invocable, argument-hint and context from its SKILL.md when the index is updated. Manual-only and model-only skills get their own icon and label, and the tooltip shows the /name <argument-hint> usage. Run Update Index to pick up invocation modes for sources you added yourself; the bundled index already has them. If an index has no invocation-mode data yet, the Browse filter reports that instead of showing an empty tree. Skill search results and the preview show the mode too, and the preview shows the /name <argument-hint> usage.

Installing several skills at once has three entry points, all sharing one progress and cancel control, one target-root choice for the whole batch, and one summary:

  • Select several skill rows in Browse with Ctrl / Shift + click, then right-click Install Selected Skills.
  • Install Multiple Skills (the cloud-download icon in the Browse title) opens a checkbox picker that follows the Browse filter and sort. Installed skills are shown but cannot be selected.
  • Right-click a source and choose Install All Shown Skills from This Source. With a filter active, only the matching skills are installed, and a confirmation shows the count.

Skills that are already installed, duplicates, and skills whose install folder collides with an installed skill in the target root you pick, or with another skill in the same batch, are skipped and counted in the summary. The folder name is the lower-cased skill name with spaces and punctuation turned into hyphens, so Code Review, code-review and code.review all land in the same folder and would overwrite each other.

With skillNinja.singleClickInstall on, clicking a row installs it, so starting a multi-selection by clicking would begin an install. Use the picker or the source row in that case.

Choosing the Workspace Skills Folder

Pick the folder for your tool from the Skills Directory Preset dropdown (skillNinja.skillsDirectoryPreset) in Settings. Use custom (the default) to type any path into skillNinja.skillsDirectory.

Preset Folder Read by
custom skillsDirectory Whatever you set (default .github/skills)
github .github/skills GitHub Copilot, VS Code
claude .claude/skills Claude Code, VS Code
agents .agents/skills Codex, VS Code

Switching the preset does not move skills that are already installed, and the previous folder stops being listed (its files stay). To keep seeing it, add it to skillNinja.additionalSkillRoots. The generated skill catalog of that workspace folder follows the preset unless you set skillNinja.refCatalogPath yourself; user-level locations (~/.copilot, ~/.claude, ~/.agents) are not affected.

Output Targets

The skill list is written to every location that holds skills: your workspace, and the personal roots ~/.copilot, ~/.claude and ~/.agents. Run Agent Skills Ninja: Configure Output Targets to see them as a checklist with the file each one resolves to, then switch any of them off or give one a different format.

Unchecking a location removes its managed block and any catalog this extension generated there. Your own text is kept.

Which tool reads which root is worth knowing before you turn one off:

Personal root VS Code GitHub Copilot CLI
~/.copilot/skills Reads Reads
~/.claude/skills Reads Does not read
~/.agents/skills Reads Does not read

The checklist marks a file that VS Code injects into every chat request, so you can keep those on ref and avoid loading the same table twice.

Quick Start

1. Ctrl+Shift+P → "Agent Skills Ninja: Search Skills"
2. Enter keywords (e.g., "pdf", "azure", "git")
3. Select skill → Choose action (Install / Preview / Favorite / GitHub)
4. Done! Auto-registered in instruction file

Search Tips 💡

Example Effect
azure Keyword search
azure devops Multiple keywords, ranked by relevance
username keyword First word searched as username
user:anthropics Explicit user search
repo:owner/repo Repository search

If no results found, keywords are automatically reduced and retried.

💬 Copilot Chat

Use @skill in GitHub Copilot Chat for skill operations:

@skill /search MCP server      # Search skills
@skill /install github-mcp     # Install skill
@skill /list                   # List installed
@skill /recommend              # Project-based recommendations
@skill what tools for Python?  # Natural language search

Commands

Command Description
/search <query> Search skills by keyword
/install <name> Install a skill
/list List installed skills
/recommend Recommendations based on workspace

Search results include install buttons for direct installation

🤖 MCP Tools (Agent Mode)

In GitHub Copilot's Agent Mode, tools are automatically available.

Tool List

Tool Reference Description
#searchSkills Search skills by keyword
#installSkill Install a skill
#uninstallSkill Uninstall a skill
#listSkills List installed skills (Entry ID, root, source, revision)
#reinstallSkills Preview, then reinstall existing skills from their source (keeps .skill-meta.json / revision current)
#recommendSkills Get project-based recommendations
#updateSkillIndex Update skill index
#webSearchSkills Web search skills on GitHub
#addSkillSource Add new skill source
#removeSkillSource Remove a skill source
#localizeSkill Localize skill descriptions

Usage Examples

💬 "Find Azure-related skills"
   → #searchSkills automatically invoked, displays results

💬 "Install the bicep-mcp skill"
   → #installSkill installs, auto-updates instruction file

💬 "Search GitHub for MCP servers"
   → #webSearchSkills searches GitHub repositories

💬 "What skills would you recommend for this project?"
   → #recommendSkills analyzes workspace and recommends

💬 "Show my installed skills in Copilot Home and Codex Home"
   → #listSkills shows Entry ID, root (label + real path), source, revision, provenance

💬 "Reinstall my own skills in Copilot Home from my repository"
   → #reinstallSkills previews first (read-only): what is ready, what is on hold and why,
     candidates for skills without metadata. Apply runs only after you approve the plan

Features

  • Trust Badges: Shows Official / Curated / Community
  • Recommended Skills: Suggests best skills from search results
  • Index Update Info: Shows last update date with warnings if outdated
  • Settings Integration: Respects autoUpdateInstruction / skillsDirectory
  • Token Efficiency: Save conversation context by using MCP tools

Disable MCP Tools

If you don't need MCP tools, you can disable them from GitHub Copilot Chat:

  1. Copilot Chat panel → Settings → Tools
  2. Toggle off "Agent Skills Ninja" tools

⚙️ Settings

Order Setting Default Description
1 skillNinja.autoUpdateInstruction true Auto-update instruction file on install. Deprecated: turning it off now removes the managed block instead of freezing it
2 skillNinja.instructionFile AGENTS.md Instruction file format (requires Auto Update)
3 skillNinja.customInstructionPath "" Custom path (only when 'custom' selected)
4 skillNinja.skillsDirectoryPreset custom Standard workspace skills folder for the tool you use (custom / github / claude / agents). custom uses skillsDirectory
5 skillNinja.skillsDirectory .github/skills Primary directory to install and manage workspace skills (only when the preset is custom)
6 skillNinja.additionalSkillRoots [] Additional workspace skill roots, for example copilot-skills/skills
7 skillNinja.useVsCodeAgentSkillLocations true Discover standard personal roots and extra user/global skill roots
8 skillNinja.showBuiltInSkills true Show read-only built-in skills
9 skillNinja.outputFormat ref Output format (ref / full / compact / legacy)
10 skillNinja.refCatalogPath .github/skills/README.md Catalog file path used by the ref format
11 skillNinja.refCatalogFormat full Catalog detail format used when outputFormat is ref
12 skillNinja.outputTargets (unset) Per-location on/off and format overrides. Unset writes every discovered location; an explicit [] writes none
13 skillNinja.autoUpdateSkillsOnUpgrade prompt Update installed skills after extension upgrade
14 skillNinja.staleSourceIndexUpdateMode prompt Refresh source indexes older than 30 days on startup (always / prompt / never)
15 skillNinja.githubToken "" Legacy GitHub Token setting (user settings only); copied to SecretStorage when present
16 skillNinja.singleClickInstall false Install remote skills with single click
17 skillNinja.coexistenceMode auto Coexistence with Agent Resources Ninja (auto / independent)
18 skillNinja.useSharedSourcesManifest false Share source-list SSOT with Agent Resources Ninja via ~/.agent-ninja/sources.json
19 skillNinja.language auto UI language (auto / en / ja)
20 skillNinja.explicitOnlySkillsInInstructions exclude How manual-only skills (disable-model-invocation: true) appear in the generated skill list (exclude / separate / include)
21 skillNinja.autoManageGitignore true Manage a skill-root .gitignore; override per repository in Workspace or Folder settings
22 skillNinja.includeCodexHome true Also manage Codex skills in ~/.codex/skills (shown only when it contains skills; no instruction file is written for it)

Settings are displayed in the order above

Gitignore Management

skillNinja.autoManageGitignore defaults to true. Install, update, uninstall, local registration, and Refresh View synchronize an Agent Skills Ninja block in each workspace skill root's .gitignore (normally .github/skills/.gitignore). Activation alone does not create it. External skill directories are ignored; local skill content remains eligible for tracking, with only its managed .skill-meta.json excluded. Unknown provenance never causes a whole directory to be ignored. A remote parent containing local skills is not ignored as a whole.

Set this resource-scoped option in User settings for a personal default, or in a repository's .vscode/settings.json for that project. Multi-root Folder settings take precedence for each destination. Setting it to false removes only Skills Ninja's block; existing user rules and Resources Ninja blocks remain. Already tracked files stay tracked: no git rm --cached is run. The generated .gitignore itself remains eligible for tracking. User/global roots, workspace-external paths and a root equal to the workspace folder are not modified.

Both Ninja extensions must use .gitignore.agent-ninja.lock beside the file to serialize updates, read fresh content after acquiring it, and release only their own lock. Busy locks, unreadable or invalid metadata, malformed managed blocks, and unsaved .gitignore edits preserve existing rules and skip synchronization. Refresh View retries after resolving the blocker. When synchronization is skipped, the warning names the cause and the affected folder; for a lock problem it offers Reveal Lock File (the lock is never deleted automatically), and Turn Off Auto-manage is offered while auto-manage is on for that folder. A lock left by a crashed writer is not automatically stolen; confirm no writer is active before removing it. Gitignore rules also affect tools that respect Git ignores, such as default search filtering.

Workspace and Folder overrides also apply to skillsDirectory and additionalSkillRoots. Changes to either root setting or autoManageGitignore reconcile the current roots and remove only Skills Ninja's block from previously managed roots. Failed cleanup stays in the workspace inventory for the next Refresh View. Inventory is local VS Code workspace state, not a repository file. Roots outside the currently open workspace are never modified.

Inventory recording, cleanup and persistence share one serial queue: delayed saves cannot overwrite a newer root list, and a skill root written between successive setting changes remains a cleanup candidate. Cleanup results do not re-register removed blocks. Failed inventory saves can be retried with Refresh View. If settings were edited while VS Code was closed, use Refresh View after reopening to reconcile the restored inventory; reopening alone does not create a .gitignore.

Hidden local skills and symbolic-link boundaries prevent blanket exclusion of their remote parent. Writes use an exclusively created temporary file, flush it, recheck the destination and unsaved editors (including path aliases), then replace the destination. A failed write or replacement leaves the original file intact. Both owners' missing, duplicated or nested block markers stop the update. Cooperating Ninja writers use the shared lock; an unrelated process that ignores it is not covered by that mutual-exclusion contract. Synchronization failures produce a separate warning with Details, and sanitized reason codes appear in Agent Skills Ninja: Skill State; a successful skill installation is not reclassified as a failure.

Native UI verification remains required before release: in an isolated Extension Development Host with two disposable workspace folders, install one external skill and register one local skill, verify Git status, turn this option OFF for only one folder, change its skill root and verify the old block is removed. Make .gitignore dirty and refresh to verify the separate warning/Details path, then save and refresh to recover. No real skill root, home directory or user data should be used for this check.

Source Index Refresh Behavior

When skillNinja.staleSourceIndexUpdateMode triggers a refresh, Skill Ninja protects the existing index:

  • At most 5 sources per run. The oldest sources go first and the rest are deferred to a later run, so a single startup cannot exhaust the GitHub rate limit. Deferred sources are listed in the Agent Skills Ninja: Source Index output channel.
  • A scan that returns 0 skills never wipes a source. The previously indexed skills are kept and the update is reported as failed.
  • A source that cannot succeed again is reported once. When the scan finds 0 skills, the repository or branch is no longer reachable (deleted, made private, branch changed), or the URL now points to another repository, the warning is shown once per cause instead of on every startup, and automatic updates retry only once every 7 days. The warning offers Show Details, Open URL, Skip from Now On (stop automatic updates until a manual update of the source succeeds) and Remove. Presets listed under retiredSources in the bundled index, such as openai-codex, are dropped on merge. Failures that may be temporary, such as network errors, rate limits, or SKILL.md files that could not be read, keep warning as before.
  • A renamed repository is followed automatically. The canonical owner/repo is resolved from GitHub and written back to the source URL.
  • A URL that starts pointing at a different repository is refused. Once GitHub returns the numeric repository id for a source, Skill Ninja stores it and skips the update if it later changes. Remove and re-add the source if the change was intentional.

Legacy compatibility setting: skillNinja.includeLocalSkills is deprecated. Workspace skills stay scoped to skillNinja.skillsDirectory and skillNinja.additionalSkillRoots, while personal roots and additional user/global roots are discovered from skillNinja.useVsCodeAgentSkillLocations. Configured locations support ${workspaceFolder}, ${userHome}, ${env:APPDATA}, and %APPDATA%. Built-in read-only skills are controlled by skillNinja.showBuiltInSkills and are shown by default.

Skill Install Reliability

Installing, cleaning up, and removing skills all report what actually happened:

  • A placeholder-only install fails. When just the generated template could be written, the install is rejected and .skill-meta.json records it as incomplete. A single install offers Retry Install / Remove / Report Bug, and Retry Install appears only on the first attempt.
  • Bulk operations stay quiet per skill. Reinstall All, per-root reinstall, multi-select reinstall, and bundle install skip the per-skill dialog and report failures in the final summary.
  • Rate limits and transient network errors are retried. The shared backoff layer retries only 429, 502, 503, and 504, for up to 3 attempts in total, honoring Retry-After and — when x-ratelimit-remaining is 0 — x-ratelimit-reset. It gives up rather than waiting longer than 20 seconds. 401, 403, and 404 are excluded from the backoff so they keep flowing into the existing authentication fallback, which walks the remaining credential sources until one succeeds.
  • A credential an organization rejects with SAML SSO is dropped for that owner. The owner and credential pair is remembered for the session, so the following requests go out anonymously and a public source keeps updating instead of failing. Other stored credentials are still tried, a credential already known to be blocked does not repeat the same anonymous request, and the reported reason is the most root-causal 401 / 403 rather than whichever attempt happened to be last. The failure notice for a source index update offers Open SSO Session, using only the organization or enterprise SSO page from the X-GitHub-SSO header — the short-lived authorization_request value is never stored or logged. Every index update entry point re-verifies a blocked credential once, so authorizing SSO elsewhere recovers without a reload.
  • Bulk operations can be stopped. Reinstall All, per-root reinstall, multi-select reinstall, bundle install, Repair Incomplete Skills, and the retry action all show a cancel control. The current skill stops at the next file boundary and is recorded as incomplete so Repair Incomplete Skills can finish it later, nothing new is started, and the summary reports how many of the requested skills were actually processed.
  • A partial install is never reported as success. When SKILL.md is real but other files could not be downloaded, the success notification is suppressed, the status bar shows the missing-file state, .skill-meta.json records repairState, and bulk summaries append how many skills installed with missing files.
  • Retries are bounded. After a bulk run, transient server or transport failures are retried in place once automatically, with at most one further manual retry. Neither retry deletes the existing folder. Authentication failures, rate limits, 404, policy limits and unknown errors do not offer the same retry again. Failure notifications include Report Bug: preview sanitized diagnostics, then open a GitHub issue draft after confirmation. Nothing is posted automatically.
  • A successful retry does not hide other failures. Failures outside the retry remain in the final warning and issue diagnostics. Authentication, SSO, PAT policy and partial-download classifications are retained without copying raw errors or private paths.
  • Read failures are not treated as missing files. Instruction/catalog writes and local registration do not replace existing data when both reading and checking existence fail. Registration and unregistration also preserve malformed metadata; repair the JSON or restore a backup before retrying. An install that cannot reread its existing metadata fails without overwriting that metadata.
  • Use one writer per skill directory. Changed-skill updates reject overlapping transactions within one Extension Host. This is not a cross-window lock: do not update, reinstall or remove the same physical skill directory concurrently from another window or tool.
  • A skill folder owned by another source is not overwritten silently. Before writing, the install compares the incoming source with the .skill-meta.json already in the target folder. A different or unidentifiable owner asks for confirmation, and confirming deletes the existing folder first. Bulk runs count it as a failure instead of prompting.
  • Incomplete skills already in the workspace are surfaced when the set changes. Activation lists up to 5 of them and offers Repair Incomplete Skills, which reinstalls only the affected skills instead of everything.
  • Unsafe file names from a source are skipped, not installed. A remote file or folder name that is not a single safe path segment (for example one containing .., a path separator, or a Windows-reserved device name) is excluded before anything is written. The install itself still succeeds. A single install shows a separate warning listing what was skipped, and bulk operations add the excluded count to their final summary, so a hostile source is never presented as a clean install.
  • Symlinks and junctions cannot lead a write or a delete out of the skill root. Before creating the skill folder, before every downloaded entry, and before every recursive delete, the target path is resolved through links and re-checked against the root. A folder reached through a link that points outside is refused, and a broken link is refused rather than treated as an unused name.
  • A source cannot ship its own .skill-meta.json. That file is owned by the extension. A copy included in the repository is silently ignored rather than counted as an unsafe file name, and the recorded install location is always recomputed from where the scanner actually found the skill.
  • A skill name with no usable ASCII form still gets its own folder. Names made only of non-ASCII characters, brackets, or symbols fall back to the last segment of the source path, and then to a stable skill-<hash> folder. The folder never collapses onto the skill root itself.
  • Leftover files directly in a skill root are reported once. A root-level .skill-meta.json that records an empty install location is a symptom of that older folder-name problem. It is reported with a warning and never deleted automatically. A plain SKILL.md at a root is a supported single-skill layout and is not flagged.
  • Bulk delete reports what actually happened. Uninstall All Skills and Uninstall Multiple Skills count real successes and report how many could not be deleted, instead of always claiming the full requested count.
  • Uninstalling by name never deletes a different skill. A name like foo! sanitizes to the folder foo. If that folder exists, it is only removed when its .skill-meta.json records the same skill; a folder owned by another skill, a hand-made local skill with no metadata, or unreadable metadata is refused instead.
  • A failed reinstall does not destroy your only copy. Uninstall, the replace step of a reinstall, and cleanup after a failed install into a folder that already existed all move the folder to the OS trash, so it can be restored. Only a folder the install itself created is deleted permanently, and the confirmation wording matches which of the two will happen.
  • A destructive chat tool asks first. #installSkill, #uninstallSkill, #addSkillSource, #removeSkillSource and #localizeSkill show a confirmation before running. #uninstallSkill confirms the resolved skill together with its skill root and entryId, and refuses to act when the name matches more than one installed skill (it lists the candidates with their entryId; pass one to target a single copy), so the confirmed target is the one that is removed. #reinstallSkills previews first, never replaces locally edited, unknown-origin or app-synced (synced/) skills without your explicit approval or at all, and re-reads the result to verify it.
  • A visible action either acts or says why it cannot. Every command shown in a tree view context menu is exercised against each context value its menu condition admits; one that cannot act reports the reason instead of doing nothing silently.
  • A startup prompt can be turned off. Every dialog shown during activation offers a way to stop it returning, and the choice is remembered. Reset Settings (including token) brings the suppressed prompts back.

Maintenance Verification

Changed-skill updates report the reading, root-scanning, update-checking and applying phases. Local-only or otherwise ineligible selections finish without consulting GitHub credentials.

Run the repeatable Extension Host smoke test with the installed VS Code executable after building:

npm run compile
node scripts/run-extension-host-smoke.js --code "$env:LOCALAPPDATA\Programs\Microsoft VS Code\Code.exe" --locale en
node scripts/run-extension-host-smoke.js --code "$env:LOCALAPPDATA\Programs\Microsoft VS Code\Code.exe" --locale ja

The runner creates disposable home, AppData, settings, extensions and workspace directories, does not inherit credentials, and removes its files after the owned host exits. It checks actual activation, maintenance-command registration, stale/missing-root handling and repeated local-only no-op updates. It does not install the extension into your regular profile or test live GitHub downloads, mouse clicks or visual layout. npm test checks the runner's isolation and cleanup contract without opening VS Code. The test entry follows the official extension test runner API.

Use an isolated Extension Development Host with a disposable workspace and home profile, not personal skill roots. Automated tests cover these paths, but do not replace the following UI check:

  1. Immediately after opening or refreshing the tree, click a disposable root's update action. Confirm that the selected root is retained and no different root is chosen.
  2. Change only a bundled reference file upstream. Update once, then again without further changes. Only the first run should replace the affected skill; other skills and the second run should remain unchanged.
  3. Exercise a persistent failure and cancellation. Confirm bounded retries, retained unrelated failures, and Report Bug diagnostics preview. Dismiss confirmation and verify that no external issue page opens.
  4. Test an unreadable output and malformed metadata on disposable copies. Verify that their bytes remain intact, then restore access/valid JSON and retry. Blocked output generation warns with Show Details, which opens Agent Skills Ninja: Skill State. Its local diagnostics identify the output group and unreadable, locked or failed state. Regenerate after resolving access or lock problems.

Output regeneration distinguishes updated, unchanged, disabled, delegated and blocked results. Failed output generation does not produce a manual regeneration success message; a successful skill installation can still have a separate output-generation warning. Repeated automatic failures with the same output/state are suppressed until recovery or explicit regeneration. Diagnostic paths stay local and are not automatically sent to an issue. The isolated smoke suite also exercises an unreadable output destination, preservation and recovery to normal generation.

Coexistence with Agent Resources Ninja

When the companion extension Agent Resources Ninja is also installed, both extensions cooperate so that AGENTS.md / CLAUDE.md / etc. always contains exactly one shared block (<!-- agent-ninja-START --> / <!-- agent-ninja-END -->). Resources Ninja is the owner whenever both are active; Skill Ninja silently defers and migrates any pre-existing <!-- skill-ninja-* --> block into the shared marker.

Remote skills installed by either extension reuse the same .skill-meta.json contract. In coexistence mode, Skill Ninja now treats those shared metadata files as the source of truth for registration state as well, so skills installed from Resources Ninja still appear as managed skills and keep reinstall / unregister actions in Skill Ninja.

Local workspace skills managed by Resources Ninja keep source: "local" metadata. Skill Ninja lists them as local skills, but does not treat them as missing from the remote skill index and excludes them from remote-index reinstall commands.

If the sibling extension is uninstalled, Skill Ninja takes over the same shared block on the next vscode.extensions.onDidChange event — no parallel blocks, no orphan markers, no manual cleanup needed in the normal case.

Optional shared source list: enable skillNinja.useSharedSourcesManifest when you want Skill Ninja and Agent Resources Ninja to reuse the same remote source definitions through ~/.agent-ninja/sources.json. This shares the source list only; each extension still refreshes and stores its own index contents.

Scan history is not shared. A source the sibling registered but Skill Ninja has never scanned is shown as not indexed rather than 0 skills, and its freshness is judged from Skill Ninja's own scan, not from the other extension's timestamp. Run Update This Source on it, or let the stale-source check pick it up, to fill it in. If an entry in the shared file fails validation it is skipped, and Explain Skill State reports how many were skipped.

Note: resourceNinja.kindsExcluded after uninstalling Skill Ninja

If you have used Resources Ninja with resourceNinja.kindsExcluded containing "skill" (the standalone default) and then uninstall Skill Ninja, Resources Ninja will fall back to its standalone behavior and re-apply that exclusion — i.e. the skill rows will disappear from the shared block. To bring them back:

  1. Remove "skill" from resourceNinja.kindsExcluded in your settings, or
  2. Run Agent Resources Ninja: Recompute Coexistence Ownership after editing the setting.

While Skill Ninja is active, Resources Ninja ignores kindsExcluded at runtime and writes all kinds (including skill) into the shared block, so this only affects the post-uninstall state.

Set skillNinja.coexistenceMode to independent to opt out and keep the legacy <!-- skill-ninja-* --> block regardless of Resources Ninja (advanced, allows parallel blocks). See .github/instructions/SkillList.instructions.md for the full contract.

Diagnostics: Agent Skills Ninja: Show Coexistence Status / Recompute Coexistence Ownership / Clean Up Orphan Instruction Block.

Output Format Details

Format Content Best For
ref IMPORTANT + link in instruction file; catalog in a separate file Always-loaded context hygiene (Default)
full IMPORTANT + Detailed table (200 chars) Complete information in one file
compact IMPORTANT + Compressed index (100 chars) Token-efficient prompts in one file
legacy Simple table only (no IMPORTANT) Backward compatibility

When using ref, configure skillNinja.refCatalogPath (where the catalog is written) and skillNinja.refCatalogFormat (full / compact / legacy) to set the detail level inside that catalog file.

The character limits apply to the description itself. A skill whose content is incomplete also carries an [incomplete] prefix on top of that limit, and with ref that prefix appears in the catalog file rather than the instruction file.

How Instruction File Sync Works

When autoUpdateInstruction is enabled:

  1. Install/Uninstall skill → Instruction file is automatically updated
  2. Managed SKILL.md detected under each writable root → Included in that root's managed section
  3. Manual Update Instruction File → Regenerates the managed section for every writable root

The instruction file contains a managed section with IMPORTANT prompt and Description column:

<!-- agent-ninja-START -->

## Agent Skills

> **IMPORTANT**: Prefer skill-led reasoning over pre-training-led reasoning.
> Read the relevant SKILL.md before working on tasks covered by these skills.

### Skills

| Skill                                            | Description                          |
| ------------------------------------------------ | ------------------------------------ |
| [skill-name](https://github.com/aktsmm/vscode-agent-skill-ninja/blob/HEAD/.github/skills/skill-name/SKILL.md) | Description text \| When to use text |

<!-- agent-ninja-END -->

Description column format: {description:80} | {whenToUse:80} (max 160 chars total)

Instruction File Options

Value File Path Use Case
AGENTS.md AGENTS.md (root) Recommended: General
.github/copilot-instructions.md .github/copilot-instructions.md GitHub Copilot
.github/instructions/SkillList.instructions.md .github/instructions/SkillList.instructions.md Copilot Instructions folder
CLAUDE.md CLAUDE.md (root) Claude Code
custom Any path (set in customInstructionPath) Custom

🔑 GitHub Token Setup

Important: GitHub authentication is required for private source repositories and strongly recommended for GitHub Search. Without it, API rate limits (60 requests/hour) will be exhausted quickly and searches may fail.

Set up GitHub authentication to enable full search functionality and private source repositories. Agent Skills Ninja resolves tokens in this order: VS Code SecretStorage, GH_TOKEN / GITHUB_TOKEN, gh CLI, then the legacy skillNinja.githubToken setting.

Option 1: GitHub CLI (Recommended)

gh auth login

If GitHub CLI is installed, the token is automatically retrieved and no extension setting is required.

Multiple gh accounts: the extension reads the credential with gh auth token, without --user, so it always gets the active account. If you are signed in to several accounts and the active one has an expired or revoked token, authentication fails even though gh auth status shows another account as healthy. Run gh auth status to see which account is active, then gh auth refresh -h github.com or gh auth switch -h github.com -u <account>.

When this happens the extension names the active account in the error, tells apart an invalid credential from a rate limit, and offers to switch to another signed-in account. Confirming changes the stored github.com credential that every gh command uses, not just VS Code, and the operation that failed is retried for you. GH_TOKEN and GITHUB_TOKEN still take precedence where they are set.

Option 2: Environment Variable

Set GITHUB_TOKEN or GH_TOKEN in your shell or OS environment. This avoids storing credentials in VS Code settings.

Option 3: Legacy VS Code Setting

Find Agent Skills Ninja: GitHub Token in settings and enter your token:

{
  "skillNinja.githubToken": "<github-token>"
}

When this legacy setting is present, Agent Skills Ninja copies the value into VS Code SecretStorage and uses the secure copy first. The setting is retained for backward compatibility and reset workflows.

skillNinja.githubToken is a machine-scoped setting, so it cannot be committed through .vscode/settings.json. If an older workspace already contains a plaintext entry, Agent Skills Ninja offers to remove it on startup; you can also delete skillNinja.githubToken from .vscode/settings.json manually. Treat any token that was committed to a repository as leaked and revoke it.

If the SecretStorage token becomes stale or belongs to another account, run Agent Skills Ninja: Clear GitHub Token (SecretStorage only). This removes the SecretStorage copy and any plaintext copy in settings.json; environment variables and gh CLI authentication remain unchanged.

For private repositories, prefer a fine-grained personal access token limited to the selected repositories with Contents: read. Classic personal access tokens need the repo scope to read private repositories.

If a private source reports 404 or "not found", open the GitHub token setting from the error message and verify repository access before updating the index or reporting a bug.

👉 Create a fine-grained GitHub Token

🛠️ Development

# Install dependencies
npm install

# Compile
npm run compile

# Build in watch mode
npm run watch

# Package
npm run package

# Lint
npm run lint

Debugging

  1. Press F5 in VS Code
  2. Test the extension in a new VS Code window
  3. Run Agent Skills Ninja commands from Command Palette (Ctrl+Shift+P)

Contributing

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

CC BY-NC-SA 4.0 © yamapan

  • Free for non-commercial use, modification, and redistribution
  • Commercial use requires permission
  • Microsoft employees may use for work purposes

Use of this content for AI/ML training, data mining, or other analytical purposes is prohibited.

🔗 Related Projects

  • anthropics/skills - Official Claude Skills
  • google/skills - Official Google Skills (bundled in preset)
  • github/awesome-copilot - Official Copilot Resources
  • microsoft/skills - Upstream Microsoft Skills reference (not bundled in preset)
  • MicrosoftDocs/Agent-Skills - Official Azure Agent Skills (bundled in preset)
  • ComposioHQ/awesome-claude-skills - Curated Skills List

👤 Author

yamapan (https://github.com/aktsmm)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft