lewibs/dark-factory/declare-tools-in-agent-frontmatter
Claude Code and agent skill by lewibs/dark-factory
- community
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-frontmatterSKILL.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
- Open the agent file and read its YAML front-matter block (the section between the opening and closing
---delimiters). - 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.
- 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.
- Save the file.
- 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 fromtools: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. PushNotificationis particularly easy to miss because it was added to agent bodies as a "notify before blocking on input" pattern after the initialtools:lists were written. Any future agent that adds this pattern must remember to addPushNotificationtotools:as well.Skillmust be listed intools:whenever an agent invokes any skill via theSkilltool. If an existing agent file gains its first skill invocation,Skillmust be added totools:at the same time — it is not implicitly available. This was a concrete omission discovered when adding theopen-in-vscodeskill call tofeature-agent.- The
allowed-tools:field (which restricts which sub-commands ofBashare permitted) is separate fromtools:— 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 assertsPushNotificationis present intools: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.mdtoimplementation-agent.md), always update theskills: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
- SKILL.md in the repositoryCheckingskills/declare-tools-in-agent-frontmatter/SKILL.md
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
[](https://verified-skill.com/skills/lewibs/dark-factory/declare-tools-in-agent-frontmatter)