agentleFS
2460124601/agent-deep-research/CLAUDE.md

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

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
  1. Very specific:

    YAML frontmatter quoting: All SKILL.md frontmatter values containing colons MUST be double-quoted.

    line 5
  2. Very specific:

    No API key echo: Never echo user-provided API keys back to the terminal, even in "helpful" export commands.

    line 13
  3. Very specific:

    No curl|sh patterns: Never use curl ... | sh install patterns in documentation.

    line 15
  4. Very specific:

    All 6 env vars the code reads MUST be declared in requires.env.

    line 23
  5. Very specific:

    Run npx clawhub inspect agent-deep-research after publishing to verify structured data appears.

    line 24
  6. Very specific:

    Verify no curl|sh patterns: grep -r 'curl.*install.*sh' scripts/ *.md

    line 36
  7. Very specific:

    Verify sensitive file filter: create a dir with .env + code.py, run --context --dry-run, verify .env is skipped

    line 37
  8. Distinctive:

    Run full testing checklist above

    line 43
  9. Very specific:

    After publish: npx clawhub inspect agent-deep-research to verify

    line 46
  10. Very specific:

    All scripts are PEP 723 standalone (inline metadata, run via uv run)

    line 51

≈ “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.

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

Project Instructions

Security Rules (apply to ALL updates)

  1. YAML frontmatter quoting: All SKILL.md frontmatter values containing colons MUST be double-quoted. The metadata field MUST be a single-quoted JSON string (not nested YAML). Test with python3 -c "import yaml; yaml.safe_load(open('SKILL.md').read().split('---')[1])" before committing.
  2. Sensitive file filtering: The _collect_files function in research.py and collect_files in upload.py MUST skip .env*, credentials.json, secrets.*, private keys (.pem, .key), and auth tokens (.npmrc, .pypirc, .netrc). Never remove this filtering.
  3. WeasyPrint SSRF protection: The PDF export (--format pdf) MUST use a custom url_fetcher that blocks all URL fetching. Never pass WeasyPrint an HTML string without this protection -- AI-generated markdown can contain ![](file:///etc/passwd) or SSRF payloads.
  4. Follow-up sanitization: The --follow-up feature MUST strip all XML-like tags from previous research output before injecting it into the new query. Use re.sub(r"<[^>]{1,50}>", "", text) to prevent prompt injection via <system>, <tool_call>, or delimiter escape attacks.
  5. No API key echo: Never echo user-provided API keys back to the terminal, even in "helpful" export commands. Use <your-key> placeholder instead.
  6. No curl|sh patterns: Never use curl ... | sh install patterns in documentation. Link to official install docs pages instead.
  7. No telemetry: This project has zero telemetry, analytics, or tracking. Never add any.

ClawHub Compliance

  • The metadata field in SKILL.md MUST be a single-quoted JSON string (not nested YAML, not unquoted JSON). ClawHub's getFrontmatterMetadata calls JSON.parse() on string values.
  • The JSON MUST include clawdbot (not clawdis) with: primaryEnv, homepage, requires.bins, requires.env, install, and config.requiredEnv.
  • All 6 env vars the code reads MUST be declared in requires.env.
  • Run npx clawhub inspect agent-deep-research after 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)

  1. python3 -m py_compile scripts/research.py scripts/store.py scripts/upload.py scripts/state.py scripts/onboard.py
  2. uv run tests/test_cost_estimation.py (10 tests must pass)
  3. uv run scripts/research.py start "test" --dry-run (valid JSON on stdout)
  4. uv run scripts/research.py start "test" --context ./scripts --dry-run (auto-detect python template)
  5. uv run scripts/research.py start "test" --max-cost 0.001 (should abort)
  6. uv run scripts/onboard.py --check (should show config status)
  7. YAML validation: python3 -c "import yaml; yaml.safe_load(open('SKILL.md').read().split('---')[1])"
  8. Verify no curl|sh patterns: grep -r 'curl.*install.*sh' scripts/ *.md
  9. Verify sensitive file filter: create a dir with .env + code.py, run --context --dry-run, verify .env is skipped

Release Process

  1. Bump version in SKILL.md (inside the metadata JSON string) and scripts/onboard.py
  2. Update CHANGELOG.md
  3. Run full testing checklist above
  4. git commit && git tag vX.Y.Z && git push origin main --tags
  5. GHA auto-publishes to GitHub Releases + ClawHub + triggers skills.sh re-index
  6. After publish: npx clawhub inspect agent-deep-research to verify
  7. 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.json is local, contains no credentials
  • The deep research agent identifier deep-research-pro-preview-12-2025 is the Interactions API agent name, not a model name
  • The default query model in store.py is gemini-3.1-pro-preview

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.