agentleFS
theonly1metheonly1me/shadowclone/.claude/skills/data-handling/SKILL.md

data-handling

Skill25 starsChanged 32 days agoMITView on GitHub

Read before changing capture, indexing, redaction, learning, skill publication, engine execution, Actions bot setup, or any path that stores or sends user data.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the code conventions in CONTRIBUTING.md.

    line 8
  2. Very specific:

    Every capture source has a named flag, off by default, and an entry in docs/data-handling.md.

    line 12
  3. Distinctive:

    Before consent, source discovery may return one ephemeral boolean for whether a configured root exists and is non-empty.

    line 14
  4. Distinctive:

    Keep derived learning, revisions, backups, and private evaluation evidence in user-owned storage outside this public checkout.

    line 28
  5. Distinctive:

    Keep removal bounded to recorded ownership.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Data handling

Follow the code conventions in CONTRIBUTING.md. Preserve the boundaries documented in docs/data-handling.md.

Consent and scope

Every capture source has a named flag, off by default, and an entry in docs/data-handling.md. Widening locations or content counts as a source change. Transcript access does not enable Git metadata, and reading skills does not authorize editing them.

Before consent, source discovery may return one ephemeral boolean for whether a configured root exists and is non-empty. Do not open entries or retain their names, paths, counts, timestamps, or provider identifiers.

Preserve repository and remote-owner boundaries. Unknown origins stay isolated. Global guidance requires explicit global evidence or a user decision. Managed policy limits cannot be widened by user configuration.

Learning input

Events carry pointers. resolveRedacted is the learning-text boundary: eligible excerpts pass through redactSecrets when materialized. Do not add competing downstream redaction gates. Derive fingerprints, metadata, and model-facing text from the same bounded source snapshot.

Exclude tool results, tool-returned file contents, thinking blocks, and data-access results from learning. Redaction reduces exposure without guaranteeing anonymity. Removing a redaction pattern needs a documented reason.

New sources need integration tests proving the adapter-to-redaction path, including excluded fields and synthetic secrets. Demonstrate that bypassing the gate makes the regression test fail.

Storage and publication

Keep derived learning, revisions, backups, and private evaluation evidence in user-owned storage outside this public checkout. Use independently authored synthetic fixtures. Do not copy private material into ignored repository files.

The index stores locators and metadata, without captured text. No raw transcript archive exists, and shadowclone does not upload or synchronize private learning state by default.

Preserve manual edits, ownership fingerprints, permissions, and supporting resources when publishing skills. Keep third-party packages and native memory read-only. Record reversible revisions and block overwrites when intervening edits conflict.

Model requests, diagnostics, and actions

Learning uses bounded redacted excerpts. Authorized coding runs can expose a repository to the selected provider, and evaluation judges receive unredacted generated code. Keep those distinct boundaries explicit; code evidence is not safe for logs or publication.

Log counts, sizes, hashes, source names, and opaque locators. Samples require an explicit debug flag and redaction. Never put raw capture or identifying transcript paths in errors or reports. Review any new network destination against the consent and purpose authorizing it.

Source, model, and publication permissions govern unattended learning. External actions require explicit approval for the particular action. The product does not commit, push, or act on GitHub itself; the shadowclone-work skill acts through the host agent's permissions.

Removal and verification

Keep removal bounded to recorded ownership. Preserve original transcripts and report edited artifacts that block cleanup. Document retention limits in the data-handling guide.

Exercise changed consent, scope, storage, redaction, and process boundaries with synthetic tests. Inspect new logging, file, process, and network sinks before handoff. Report material boundary changes and verification without copying sensitive evidence into the report.

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.