Skip to content
Back to skills

Coding

ASecurity

Build a small script or MCP server for a one-off or recurring task, with one responsibility, least privilege and human review before it runs. Use when the user keeps repeating a manual step or asks for a new tool for the agent.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 14, 2026
ai-agentsgoshellsecurity

Works with

  • mcp

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill coding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-coding-4946024c/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-coding-4946024c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tool-construction
description: "Build a small script or MCP server for a one-off or recurring task, with one responsibility, least privilege and human review before it runs. Use when the user keeps repeating a manual step or asks for a new tool for the agent."
triggers: [build a tool, create an mcp server, write a helper script, toolsmith, automate a repeated manual step]
tags: [coding]
role: eng-tooling
context_cost: low
---
# tool-construction Skill

## Goal
This skill guides the creation of NEW capabilities for the swarm.

## Steps
## 1. Script vs MCP
- **Script**: One-off task (e.g., "Migrate CSV to JSON").
- **MCP Server**: Persistent tool needed by LLM (e.g., "Query internal Knowledge Base").

## 2. Building an MCP Server (Quick-Start)
Use the `@modelcontextprotocol/sdk`:
1.  Define Tools (Input Schema).
2.  Implement Logic.
3.  Connect to Stdio/SSE.

## 3. Tool Safety
- **Sandboxing**: Generated tools should not have root access.
- **Review**: A generated tool that writes, deletes or sends anything is shown to the human and run only after they confirm (the `ops-security` persona may add a review but does not replace the human).

## 4. The "Toolsmith" Loop
1.  **Identify Pain**: "We keep grepping for X manually."
2.  **Spec Tool**: "Build a tool that finds X and formats as JSON."
3.  **Implement**: Write `tools/find_x.py`.
4.  **Register**: Add to `project_tools` in context configuration, only after the human approved the tool.

## Constraints
- One responsibility per tool: a tool that finds X does not also delete X or restart a service.
- A one-off task is a script; build an MCP server only when the LLM needs the tool repeatedly.

## Output Format
The tool's source file (for example `tools/find_x.py` or an MCP server folder), its input schema and the command that runs it.

## Limits and safety
- Generated tools never use `shell=True`, `eval` or `exec` on input; pass argument lists and parse input against a schema.
- Show the source to the human before the first run if the tool writes, deletes or sends anything; register it in `project_tools` only after their yes.
- Give the tool the least access it needs: the one directory or file, no root, no wildcard mounts.
- Take credentials from the environment; never ask the human for a token in chat or hard-code one.
- Check MCP calls against the types of the installed `@modelcontextprotocol/sdk` before relying on them.

Files in this skill

  • agent-trajectory-eval.skill.md5.7 KB
  • artisan-commands.skill.md3.7 KB
  • browser-tdd.skill.md7 KB
  • chaos-fault-injection.skill.md8.1 KB
  • ci-autofix.skill.md4.2 KB
  • clean-coder.skill.md4.5 KB
  • code-review.skill.md6.1 KB
  • debug.skill.md6.5 KB
  • documentation.skill.md7.3 KB
  • eval-driven-development.skill.md6.9 KB
  • evals/code-review.eval.yaml1 KB
  • excalidraw.skill.md3.7 KB
  • file-processing.skill.md4.3 KB
  • git-workflow.skill.md7.2 KB
  • metamorphic-testing.skill.md7.8 KB
  • mobile-dev.skill.md4.2 KB
  • nodejs-expert.skill.md1.6 KB
  • output-validation.skill.md5.4 KB
  • pbt-strategy.skill.md8 KB
  • performant-ai.skill.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.