ai-engineering-fluency: Command for GitHub Copilot

.github/prompts/sync-toolnames.prompt.md

sync-toolnames is a command for GitHub Copilot from rajbos/ai-engineering-fluency. It costs 24 tokens per session (948 once invoked), scanned A, original, MIT.

A guided command for finding tool identifiers in Microsoft's VS Code Copilot Chat source and adding missing names to a project's JSON mapping. It compares model-facing string values, rather than TypeScript enum labels.

In plain words
What is it for?
Use it when updating the AI engineering project's tool-name data after changes in VS Code Copilot Chat. It helps synchronize and normalize tool identifiers.
Why use it?
A missing or duplicated tool name can make tool usage tracking incomplete or inconsistent. This command keeps the local mapping aligned with the upstream source.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: mentions subagents.

This is rajbos/ai-engineering-fluency's own configuration. It tells GitHub Copilot how to work on ai-engineering-fluency itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-engineering-fluency configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rajbos/ai-engineering-fluency. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rajbos/ai-engineering-fluency/main/.github/prompts/sync-toolnames.prompt.md
Clone the repo
git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-toolnames

README.md
[![agentmods](https://agentmods.dev/badge/commands/rajbos/ai-engineering-fluency/sync-toolnames/github.svg)](https://agentmods.dev/commands/rajbos/ai-engineering-fluency/sync-toolnames)
Your own site
<a href="https://agentmods.dev/commands/rajbos/ai-engineering-fluency/sync-toolnames"><img src="https://agentmods.dev/badge/commands/rajbos/ai-engineering-fluency/sync-toolnames/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-toolnames

Your own site · 80×15
<a href="https://agentmods.dev/commands/rajbos/ai-engineering-fluency/sync-toolnames"><img src="https://agentmods.dev/badge/commands/rajbos/ai-engineering-fluency/sync-toolnames.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00948
Opus 5.5 $0.00010 $0.00379
Sonnet 5.5 $0.00005 $0.00190
Haiku 4.5 $0.00002 $0.00095

Measured yesterday against content hash 26d6e02669df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-toolnames scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/sync-toolnames.prompt.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync Tool Names from vscode-copilot-chat

Scan microsoft/vscode-copilot-chat repo for model-facing tool identifiers, compare them to the existing src/toolnames.json in our repo in the current folder. Only make changes in our current folder.

Requirements

  1. The microsoft/vscode-copilot-chat repository has been checked out and is available in the workspace in the folder vscode-copilot-chat. Use the paths provided in the Context Paths section below.
  2. In the vscode-copilot-chat repo, treat src/extension/tools/common/toolNames.ts as the source of truth for tool IDs.
    • Extract tool IDs from:
      • export enum ToolName { ... } (string literal values)
      • export enum ContributedToolName { ... } (string literal values)
    • Ignore TypeScript keys (enum member names). Only collect the string values (the model-facing tool names).
  3. In this repo, load the existing mapping file src/toolNames.json. Treat its top-level keys as the set of already-known tool IDs.
  4. Normalize and deduplicate before computing missing:
    • Use the helper at .github/scripts/toolnames_utils.py (or replicate its canonicalization rules) to canonicalize both upstream tool IDs and existing mapping keys.
    • Equivalent forms (e.g. mcp_github_github_* ↔ mcp_io_github_git_* ↔ github-mcp-server-*, context7-* ↔ mcp_context7_*, Playwright/Tavily/Claude Browser prefix variants) must collapse to the same canonical key.
    • Compute missing = upstream IDs whose canonical form is not already present in the existing mapping.
    • Skip any upstream ID whose generated friendly name already exists as a value in toolNames.json.
    • Deduplicate.
    • Sort ascending (stable, locale-insensitive).
  5. For each missing tool ID, generate a default friendly name:
    • Replace _ / - / . with spaces.
    • Split camelCase / PascalCase boundaries into words.
    • Uppercase words (Title Case).
    • Preserve known acronyms in ALL CAPS: VSCODE, MCP, GITHUB, API, URL, JSON, HTTP, HTTPS, CLI, UI, IO, ID.
    • Examples:
      • github_api_tool → GitHub API Tool
      • copilot_readFile → Copilot Read File
      • mcp.io.github.git → MCP IO GitHub Git
      • search_subagent → Search Subagent
      • run_in_terminal → Run In Terminal
      • vscode_command → VSCode Command
  6. Inject only the missing entries into our existing mapping object in the current repository, using the same style as the mapping (leading comma with space on each line), e.g.:
    , "some_tool": "Some Tool"
    
  7. Inject the missing entries inside the json object, matching the organic grouping of locically related tools if possible (e.g. if there are existing entries with the same prefix, group the new entry with them). If no related entries exist, add the new entry at the end of the file, but before the closing }.
  8. Also print (as plain text, after the delta or NO_DELTA) the upstream commit SHA used for the scan and the exact file path scanned in upstream, for traceability.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 51 lines · 24 tokens per session scan A 26d6e02669df

Subscribe to this mod's changes

sync-toolnames is a command published in the GitHub repository rajbos/ai-engineering-fluency (119 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 948 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.