lewibs/dark-factory/declare-tools-in-agent-frontmatter

Claude Code and agent skill by lewibs/dark-factory

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ensures every tool called in an agent's instruction body is listed in the tools: YAML front-matter, and every skill invoked in the body is listed in the skills: front-matter. Both fields act as access-control gates — omitting either causes the tool or skill to be silently unavailable at runtime.

Install

npx vskill@latest install lewibs/dark-factory/declare-tools-in-agent-frontmatter

SKILL.md

The same SKILL.md was published earlier as lewibs/dark-factory/declare-tools-in-agent-frontmatter.

When to use

Use this whenever you create or modify an agent file (any agents/**/*.md) that calls a tool or invokes a skill in its instruction body. Also use it when debugging an agent that appears to skip a step silently (no error, but no effect).

Steps

  1. Open the agent file and read its YAML front-matter block (the section between the opening and closing --- delimiters).
  2. Tools check:

a. Identify the tools: field. If it is absent, add it. b. Read the agent instruction body and collect every tool the agent is instructed to call (look for tool names like PushNotification, Read, Bash, Agent, WebSearch, Task, etc.). c. For each tool found in the body, confirm it is listed in the tools: front-matter field. If it is missing, add it to the comma-separated list.

  1. Skills check:

a. Identify the skills: field. If the agent body references any skill (e.g., invoke skills/logging/SKILL.md, use skills/deviation-protocol/SKILL.md), the field must be present. b. Read the agent instruction body and collect every skill slug referenced (the directory name under skills/, e.g., logging, deviation-protocol). c. For each skill slug found in the body, confirm it appears in the skills: front-matter field (comma-separated). If it is missing, add it.

  1. Save the file.
  2. Repeat for every agent file that was created or touched in the current task.

Notes

  • Claude Code grants an agent access to a tool only if that tool appears in the agent's tools: front-matter field. A tool referenced in the instruction body but absent from tools: is silently inaccessible — the agent will not error, it will simply skip or never reach that call.
  • The same gate applies to skills: if a skill slug is invoked in the body but omitted from skills:, the agent cannot load it at runtime.
  • PushNotification is particularly easy to miss because it was added to agent bodies as a "notify before blocking on input" pattern after the initial tools: lists were written. Any future agent that adds this pattern must remember to add PushNotification to tools: as well.
  • Skill must be listed in tools: whenever an agent invokes any skill via the Skill tool. If an existing agent file gains its first skill invocation, Skill must be added to tools: at the same time — it is not implicitly available. This was a concrete omission discovered when adding the open-in-vscode skill call to feature-agent.
  • The allowed-tools: field (which restricts which sub-commands of Bash are permitted) is separate from tools: — both may need to be updated when adding new tool usage. For example, when an agent is updated to perform local git operations, add the required git subcommands explicitly:

``yaml allowed-tools: Bash(bash *), Bash(find *), Bash(git add *), Bash(git commit *), Bash(git checkout *), Bash(git branch *) `` Without these entries, the agent will be blocked from running those git commands at runtime.

  • A regression test (tests/test_push_notification_declared.py) exists in this repo that parses the YAML front-matter of all agent files and asserts PushNotification is present in tools: for every agent that references it in its body. Run this test after modifying agent files to catch omissions early.
  • When adding a new skill invocation to an existing agent (e.g., adding skills/logging/SKILL.md to implementation-agent.md), always update the skills: field in the same edit — do not treat it as optional cleanup.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lewibs/dark-factory/declare-tools-in-agent-frontmatter/badge)](https://verified-skill.com/skills/lewibs/dark-factory/declare-tools-in-agent-frontmatter)

Something wrong with this skill or its page? Tell us.