agent-deep-research
CLAUDE.md8 starsChanged 10 months agoMITView on GitHub
- Pipes a download into a shell
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deep-researchSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 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.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
YAML frontmatter quoting: All SKILL.md frontmatter values containing colons MUST be double-quoted.
- Very specific: line 13
No API key echo: Never echo user-provided API keys back to the terminal, even in "helpful" export commands.
- Very specific: line 15
No curl|sh patterns: Never use curl ... | sh install patterns in documentation.
- Very specific: line 23
All 6 env vars the code reads MUST be declared in requires.env.
- Very specific: line 24
Run npx clawhub inspect agent-deep-research after publishing to verify structured data appears.
- Very specific: line 36
Verify no curl|sh patterns: grep -r 'curl.*install.*sh' scripts/ *.md
- Very specific: line 37
Verify sensitive file filter: create a dir with .env + code.py, run --context --dry-run, verify .env is skipped
- Distinctive: line 43
Run full testing checklist above
- Very specific: line 46
After publish: npx clawhub inspect agent-deep-research to verify
- Very specific: line 51
All scripts are PEP 723 standalone (inline metadata, run via uv run)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.
Files
Project Instructions
Security Rules (apply to ALL updates)
- YAML frontmatter quoting: All SKILL.md frontmatter values containing colons MUST be double-quoted. The
metadatafield MUST be a single-quoted JSON string (not nested YAML). Test withpython3 -c "import yaml; yaml.safe_load(open('SKILL.md').read().split('---')[1])"before committing. - Sensitive file filtering: The
_collect_filesfunction in research.py andcollect_filesin upload.py MUST skip.env*,credentials.json,secrets.*, private keys (.pem,.key), and auth tokens (.npmrc,.pypirc,.netrc). Never remove this filtering. - WeasyPrint SSRF protection: The PDF export (
--format pdf) MUST use a customurl_fetcherthat blocks all URL fetching. Never pass WeasyPrint an HTML string without this protection -- AI-generated markdown can containor SSRF payloads. - Follow-up sanitization: The
--follow-upfeature MUST strip all XML-like tags from previous research output before injecting it into the new query. Usere.sub(r"<[^>]{1,50}>", "", text)to prevent prompt injection via<system>,<tool_call>, or delimiter escape attacks. - No API key echo: Never echo user-provided API keys back to the terminal, even in "helpful" export commands. Use
<your-key>placeholder instead. - No curl|sh patterns: Never use
curl ... | shinstall patterns in documentation. Link to official install docs pages instead. - No telemetry: This project has zero telemetry, analytics, or tracking. Never add any.
ClawHub Compliance
- The
metadatafield in SKILL.md MUST be a single-quoted JSON string (not nested YAML, not unquoted JSON). ClawHub'sgetFrontmatterMetadatacallsJSON.parse()on string values. - The JSON MUST include
clawdbot(notclawdis) with:primaryEnv,homepage,requires.bins,requires.env,install, andconfig.requiredEnv. - All 6 env vars the code reads MUST be declared in
requires.env. - Run
npx clawhub inspect agent-deep-researchafter publishing to verify structured data appears. - The ClawHub security scanner is LLM-based and reads both the SKILL.md content and the registry metadata. Ensure consistency between what the code does and what the metadata declares.
Testing Checklist (before every release)
python3 -m py_compile scripts/research.py scripts/store.py scripts/upload.py scripts/state.py scripts/onboard.pyuv run tests/test_cost_estimation.py(10 tests must pass)uv run scripts/research.py start "test" --dry-run(valid JSON on stdout)uv run scripts/research.py start "test" --context ./scripts --dry-run(auto-detect python template)uv run scripts/research.py start "test" --max-cost 0.001(should abort)uv run scripts/onboard.py --check(should show config status)- YAML validation:
python3 -c "import yaml; yaml.safe_load(open('SKILL.md').read().split('---')[1])" - Verify no
curl|shpatterns:grep -r 'curl.*install.*sh' scripts/ *.md - Verify sensitive file filter: create a dir with
.env+code.py, run--context --dry-run, verify.envis skipped
Release Process
- Bump version in SKILL.md (inside the metadata JSON string) and scripts/onboard.py
- Update CHANGELOG.md
- Run full testing checklist above
git commit && git tag vX.Y.Z && git push origin main --tags- GHA auto-publishes to GitHub Releases + ClawHub + triggers skills.sh re-index
- After publish:
npx clawhub inspect agent-deep-researchto verify - Fix symlink if overwritten:
rm -rf ~/.agents/skills/deep-research && ln -s $(pwd) ~/.agents/skills/deep-research
Architecture Notes
- All scripts are PEP 723 standalone (inline metadata, run via
uv run) - Dual output convention: stderr = Rich human-readable, stdout = machine-readable JSON
- State file
.gemini-research.jsonis local, contains no credentials - The deep research agent identifier
deep-research-pro-preview-12-2025is the Interactions API agent name, not a model name - The default query model in store.py is
gemini-3.1-pro-preview
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
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.

