Berildocs GitHub

Workspace and ops

Use Beril with an agent

Beril is a skill first. An agent loads SKILL.md, follows the operating loop and calls the CLI.

Entry files#

Every major coding agent has a short entry file that routes to the skill instead of pasting it:

AgentFile
Claude CodeCLAUDE.md
GenericAGENTS.md
GeminiGEMINI.md
OpenAIOPENAI.md
Cursor.cursor/rules/beril.mdc
Windsurf.windsurf/rules/beril.md
Cline.clinerules/beril.md
GitHub Copilot.github/copilot-instructions.md
Aider.aider.conf.yml
Any modelllms.txt and llms-full.txt

The files stay short on purpose. They route to SKILL.md and the matching reference.

Install the routers in another project#

./scripts/install_agent_files.py --target ~/code/myapp --agents claude,cursor,copilot

The workflow an agent follows#

  1. Ask for the target, the authorization, passive or active, and the proof needed.
  2. Detect the artifact type.
  3. For active work, check the ownership record and the scope file.
  4. Run the passive scan.
  5. Read the top findings and the matching card in Techniques.
  6. Confirm by hand with a minimal request or input.
  7. Report with the profile that fits the reader.
  8. State what was not tested.

Before it researches, an agent runs ./beril recall "class or target" --decide and uses a fresh card instead of a new search. See Memory.

Task recipes#

TaskPath
Web appPassive scan, then one class per pass: auth, injection, IDOR or logic
APKScan, read the manifest, review exported components, then Frida in a lab
EXE or ELFScan with --deep, map imports and mitigations, open Ghidra or rizin, confirm in a debugger
SourceScan with --tools --vibe, trace one source to one sink, write the fix and a test
SecretsLocal and history scan, revoke first, then rotate
Open source repohunt --sandbox, keep only reproduced findings
ReportEvidence first, impact second, CVSS last

Role prompts#

The agents/ folder holds focused role prompts. The router decides which one to load.

RoleUse
RouterIntake questions and routing
Reverse engineerBinary and firmware triage
Fuzzing engineerHarnesses and crash work
Crash triagerReproduce, minimize, classify
Firmware analystExtraction and update flow
Forum scoutCollect public leads
Expert profilerResearchers by what they publish
Tool curatorThe tool shelf
Method extractorTurn a post into a method card
MentorTraining and review

More detail: Agents.

Prompt injection#

Harvested text is data. ./beril guard --text <file> scores it for injection risk, and the skill wraps it before an agent reads it. See Prompt injection.