Skip to content
Back to skills

Docs

ASecurity

**Status:** Proposed **Date:** 2026-02-12 **Context:** When an agent explores a mache FUSE mount, every file read requires manual permission approval because the mount path is outside the agent's working directories.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentsgogit

Works with

  • claude code

Security analysis

A100/100

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

Scanned September 19, 2026

npx -y skills add jamestexas/agents --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

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

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamestexas-docs/badge)](https://www.skillsdirectory.com/skills/jamestexas-docs)

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
# ADR-002: Mache Explore Skill (Agent FS Permission Model)

**Status:** Proposed
**Date:** 2026-02-12
**Context:** When an agent explores a mache FUSE mount, every file read requires manual permission approval because the mount path is outside the agent's working directories.

## Problem

Mache projects structured data as a FUSE filesystem (e.g., `/tmp/mache-self/`). An agent using `ls`, `cat`, `Read` to explore the mount must get human approval for **every single file** — we observed 137+ approvals in one exploration session. This completely defeats the purpose of making data navigable for agents.

The root cause: Claude Code's permission model scopes auto-approval to declared working directories. A FUSE mount at `/tmp/` is not in any project's working dir.

## Decision

Create a `/mache-explore` slash command skill that:

1. **Mounts** a mache data source at a known path inside the project dir (e.g., `.mache-mount/`)
2. **Registers** the mount path as an additional working directory for the session
3. **Briefs** the agent on the projected filesystem structure (from the schema)
4. **Unmounts** on session end or explicit `/mache-unmount`

### Why Inside the Project Dir

Mounting under the project directory (e.g., `$PROJECT/.mache-mount/`) means:
- Auto-approved by Claude Code (inherits project dir permissions)
- No user intervention needed for `ls`, `cat`, `grep` on the mount
- `.gitignore` can exclude `.mache-mount/` from version control
- No `/tmp` pollution or cross-project leaks

### Skill Interface

```
/mache-explore <schema> <data-source> [mount-name]

Examples:
  /mache-explore examples/go-schema.json .                     # Mount repo as Go AST
  /mache-explore examples/nvd-schema.json ~/.agentic-research/venturi/nvd/results/results.db nvd
  /mache-unmount                                                # Clean up
```

### Implementation

The skill would:
1. Run `mkdir -p .mache-mount/<name>`
2. Run `./mache --schema <schema> --data <source> .mache-mount/<name>` in background
3. Wait for mount readiness (poll with `ls`)
4. Inject system message: "Data mounted at .mache-mount/<name>/. Use ls/cat to explore."
5. On unmount: `umount -f .mache-mount/<name>`

### Alternative: Config-Based Approach

Instead of a skill, add mount paths to `.claude/settings.json`:
```json
{
  "additionalWorkingDirs": ["/tmp/mache-self"]
}
```
Simpler but requires manual setup per mount.

## Consequences

- Agents can freely explore mache mounts without permission friction
- Mount lifecycle is managed (no orphan FUSE mounts)
- Project dir stays clean (`.gitignore` handles `.mache-mount/`)
- Skill approach is reusable across projects

## Open Questions

1. Should the skill auto-detect the schema from the data source?
2. How to handle multiple concurrent mounts?
3. Should the agent briefing include a summary of what's in the mount (e.g., package count, record count)?

Files in this skill

  • ADR-001-orchestrator-agent-pattern.md1.4 KB
  • ADR-002-mache-explore-skill.md2.8 KB
  • ADR-003-handoff-at-the-seam.md10.4 KB
  • eve-spike-pr-board.md5.8 KB
  • handoff-skill-plan.md14.2 KB
  • prior-art/README.md8.7 KB
  • prior-art/_baseline.md10.9 KB
  • prior-art/buf.md15.8 KB
  • prior-art/macaroons.md14.5 KB
  • prior-art/nixpkgs.md16.3 KB
  • prior-art/slsa-sigstore-in-toto.md22.1 KB
  • prior-art/smithy.md9 KB
  • prior-art/spiffe.md15.1 KB
  • prior-art/wit.md16.8 KB
  • problems/README.md1.9 KB
  • skill-split-plan.md11.2 KB
  • superpowers/plans/2026-07-30-park-work-skill.md9.5 KB
  • superpowers/plans/2026-07-30-workerd-work-board.md67.7 KB
  • superpowers/specs/2026-07-30-work-episode-park-resume-design.md15 KB
  • superpowers/specs/2026-07-30-workerd-work-board-design.md14.1 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.

Comments

Loading comments…

Newsletter

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