agentleFS
samugit83samugit83/redamon/skills/builtin-agent-skill/SKILL.md

builtin-agent-skill

Skill2.9k starsChanged 9 months agoMITView on GitHub

Adding a built-in Agent Skill (an attack technique like ssrf, xxe, rce) that ships hardcoded in RedAmon: classified by the Intent Router, injected into the agent prompt, toggled per project, badged in the chat drawer. Nine layers across agentic and webapp, two of which fail with no error. Trigger: adding or editing a built-in attack skill; a new agentic/prompts/<skill_id>_prompts.py; editing agentic/prompts/classification.py, agentic/prompts/__init__.py _inject_builtin_skill_workflow, KNOWN_ATTACK_PATHS in agentic/state.py, or the webapp AttackSkillsSection / AIAssistantDrawer.

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 6 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the samugit83/redamon repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about samugit83/redamon

The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 7

Talked about on GitHub and Bluesky (7 times).

On GitHub · 6

1 more on GitHub

On Bluesky · 1

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER let classification keywords overlap an existing skill: Every enabled built-in competes for the same user message.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

When to Use

  • Adding a first-class attack technique the agent classifies and follows a workflow for.

For a user-uploadable workflow, use add-community-skill instead. For a tool the agent calls, use agentic-tool-integration. For per-skill tunable defaults, use project-settings-cascade.


Critical Rules

  • ALWAYS add the skill id to KNOWN_ATTACK_PATHS in agentic/state.py. It is the Pydantic validator's allowlist; miss it and the classifier's output is rejected at runtime even though every other layer is wired.
  • NEVER skip layers 8 and 9 (the chat-drawer layers). They live in webapp and produce no error when forgotten: the skill classifies and badges, but the drawer tooltip and one-click example prompts are silently missing. Layer 8 = BUILT_IN_SKILLS in attack-skills/available/route.ts; Layer 9 = a SESubGroup in suggestionData.ts.
  • NEVER let classification keywords overlap an existing skill. Every enabled built-in competes for the same user message; overlapping keywords (e.g. saying "SQL" in an SSRF section) make both skills mis-route. Disambiguate in the "Key distinction" line of the section in classification.py.
  • ALWAYS gate the workflow on the required tool inside _inject_builtin_skill_workflow() (agentic/prompts/init.py:509): and "<tool>" in allowed_tools. Without the guard the agent gets instructions for a tool TOOL_PHASE_MAP blocks in that phase.
  • NEVER assume existing projects inherit the new skill. builtIn is a strict has-key check; existing projects need a jsonb update to attackSkillConfig.
  • ALWAYS add a registry entry for a per-skill tunable that became a Project column in recon_settings/registry.yaml. A test walking Prisma.ProjectScalarFieldEnum fails until every column has one. Draft it with python3 tooling/scripts/extract_recon_registry.py, edit it, then python3 recon_settings/build.py. An attack-skill tunable is ordinary mcp: settable tuning now, bounded by its registry entry and gated at scan start by roeForbiddenCategories, roeForbiddenTools and roeAllowDos rather than by being unreachable. Give it traffic: active so it joins the queued-job fingerprint, and roe_capped: true if its unit is rps.
  • Pick the snake_case id once and use that exact literal in all 9 layers. grep -rn "<skill_id>" webapp/src agentic must show it everywhere before you rebuild (an existing id like cve_exploit spans ~38 files).

The nine layers (all required end to end)

#LayerFile
1Workflow promptagentic/prompts/<skill_id>_prompts.py
2Package re-export + __all__agentic/prompts/init.py
3Phase injection branch_inject_builtin_skill_workflow() (same file)
4Classification + validatorclassification.py _BUILTIN_SKILL_MAP and KNOWN_ATTACK_PATHS in state.py
5Settings defaultATTACK_SKILL_CONFIG.builtIn in agentic/project_settings.py
6Prisma defaultattackSkillConfig JSON in schema.prisma
7UI toggle + badgeAttackSkillsSection.tsx + phaseConfig.ts
8Drawer tooltipattack-skills/available/route.ts BUILT_IN_SKILLS
9Drawer example promptssuggestionData.ts

Commands

docker compose build agent && docker compose up -d agent   # agentic/ is baked
docker compose exec webapp npx prisma db push              # NEVER prisma migrate
# verify the id is wired everywhere before rebuild:
grep -rn "<skill_id>" webapp/src agentic

Resources

  • docs/readmes/coding_agent_prompts/PROMPT.ADD_BUILTIN_AGENT_SKILL.md - full per-layer walkthrough, tunable-design patterns, failure triage
  • Related skills: agentic-tool-integration, project-settings-cascade, add-community-skill

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.