redaction-and-cleanup
Skill3 starsChanged 7 months agoMITView on GitHub
Use when user says "redact", "clean up for sharing", "remove sensitive info", "prepare for external", when sharing .forge/ artifacts with investors or external reviewers, when sanitizing documents before external publication, or when pricing/credentials/strategy must be removed before sharing.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- api-designSkill
- architecture-and-contractsSkill
- brand-and-identitySkill
- code-review-and-qualitySkill
- competitive-analysisSkill
- component-librarySkill
- cross-validationSkill
- database-designSkill
- data-visualizationSkill
- debugging-and-recoverySkill
- demo-narrativeSkill
- design-systemSkill
- documentation-hygieneSkill
- error-handling-and-resilienceSkill
- feedbackSkill
- forge-migrateSkill
- forge-syncSkill
- git-workflowSkill
- gtm-strategySkill
- idea-grillerSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- interaction-patternsSkill
- observabilitySkill
- page-compositionSkill
- parallel-execution-strategySkill
- performance-and-cost-optimizationSkill
- planning-and-task-breakdownSkill
- refactoring-and-tech-debtSkill
- scalability-analysisSkill
- security-and-complianceSkill
- seed-data-and-fixturesSkill
- shipping-and-launchSkill
- spec-driven-developmentSkill
- tddSkill
- testing-strategySkill
- triage-issueSkill
- using-forge-skillsSkill
- visual-polishSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
NEVER modify original files in place: All redaction happens on copies in .forge/redacted/.
- Distinctive: line 70
Use consistent, identifiable placeholders:
- Very specific: line 100
Do NOT copy .forge/redaction-manifest.md to redacted/ (it contains the mapping)
- Very specific: line 104
Run grep on .forge/redacted/ for every term in the redaction categories.
- Distinctive: line 108
If documents are updated later, the redacted copies are stale.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Redaction and Cleanup
Overview
Prepare .forge/ documents for external sharing by copying them to .forge/redacted/ and replacing sensitive information with consistent placeholders. Original files are NEVER modified. The redaction manifest documents every change for internal reference.
When to Use
- Sharing documents with investors, advisors, or partners
- Preparing materials for external review or cross-validation
- Publishing case studies or documentation based on internal artifacts
- Any situation where internal data must not leave the organization
When NOT to Use
- Documents are already public — no redaction needed
- User wants to delete files — that's not redaction
- The sensitive data IS the deliverable (e.g., a security audit for the client)
Common Rationalizations
| Thought | Reality |
| "I'll just manually remove the sensitive parts" | Manual redaction misses things. Automated scan + manifest catches more |
| "It's fine, the recipient is trusted" | Trust the person, redact the document. People forward things |
| "I'll edit the originals and restore later" | You won't. Original files must be untouched — copy first, always |
| "Only pricing needs redacting" | Credentials, internal metrics, employee names, strategy details — audit first |
| "A quick find-and-replace is enough" | Inconsistent placeholders leak information through correlation |
Red Flags
- Original files modified in place (SAFETY VIOLATION — must copy first)
- Placeholder values are inconsistent (same entity gets different placeholders)
- Grep after redaction still finds sensitive terms
- Manifest is missing (no record of what was changed)
- Redaction categories not defined before scanning (ad-hoc misses patterns)
SAFETY RULE
NEVER modify original files in place. All redaction happens on copies in .forge/redacted/. Original files in .forge/ must remain untouched. If you are about to edit a file outside .forge/redacted/, STOP.
Core Process
Step 1: Define redaction categories
With the user, define what to redact and what to keep:
Redact (typical):
- Pricing, margins, unit economics
- API keys, credentials, connection strings
- Internal strategy, competitive positioning details
- Employee names, internal team structure
- Specific customer names (unless public case study)
- Internal metrics, revenue numbers
Keep (typical):
- Public pricing from competitors
- Architecture patterns and technology choices
- General cost categories (without specific numbers)
- Role titles (without names)
- Publicly available data
Step 2: Define placeholder format
Use consistent, identifiable placeholders:
- Company names:
[COMPANY-A],[COMPANY-B](consistent across all docs) - Prices:
[PRICE-TIER-1],[PRICE-TIER-2] - People:
[TEAM-MEMBER-1],[TEAM-MEMBER-2] - Metrics:
[INTERNAL-METRIC] - Credentials:
[CREDENTIAL-REDACTED]
Consistency rule: the same entity gets the same placeholder everywhere.
Step 3: Scan all files
Scan every file in .forge/ for matches against redaction categories. For each match, record:
- File path
- Line number
- Original content (summary, not full text)
- Redaction action (replace with which placeholder)
Step 4: Generate manifest
Write .forge/redaction-manifest.md:
- Redaction categories defined
- Placeholder mapping (which entity → which placeholder)
- Per-file change list
- Total changes count
Step 5: Copy and redact
- Create
.forge/redacted/directory - Copy all files from
.forge/to.forge/redacted/(preserving structure) - Apply redactions to the copies only
- Do NOT copy
.forge/redaction-manifest.mdto redacted/ (it contains the mapping)
Step 6: Verify
Run grep on .forge/redacted/ for every term in the redaction categories. Zero matches required. If any remain, fix and re-verify.
Step 7: Sync check
If documents are updated later, the redacted copies are stale. Note in the manifest: "Redacted on [date]. If originals change, re-run redaction."
Output
.forge/redaction-manifest.md— what was redacted, placeholder mapping.forge/redacted/*— cleaned copies of all documents
Verification
- Original files in
.forge/are unchanged - All files copied to
.forge/redacted/before any edits - Placeholders are consistent (same entity → same placeholder across all files)
- Grep confirms zero remaining matches for redacted terms in
.forge/redacted/ - Manifest documents every change with file and line reference
- Redaction manifest is NOT copied to
.forge/redacted/ .forge/redaction-manifest.mdwritten
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.

