-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanonymization.example.yaml
More file actions
71 lines (59 loc) · 2 KB
/
Copy pathanonymization.example.yaml
File metadata and controls
71 lines (59 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Anonymization mapping — EXAMPLE
# Copy this to anonymization.yaml and replace with your real data.
# anonymization.yaml is gitignored and never committed.
#
# Option B strategy: public apps keep real names, private apps get placeholders.
# This way your public repos are recognizable, but private projects stay hidden.
replacements:
# GitHub username
"your-gh-user": "{github-username}"
# Portfolio site
"your-portfolio-site": "{portfolio-site}"
"your-site.dev": "{portfolio-site-url}"
# App URLs (anonymize even for public apps — URLs reveal the owner)
"myapp.dev": "myapp.example.com"
"budget.yoursite.dev": "budget.example.com"
# People
"Jane Doe": "{author-name}"
"Jane": "{author-first-name}"
# Private app slugs (use descriptive placeholders)
"my-secret-project": "my-sample-app"
"private-tool": "my-tool"
# Public app slugs — leave them out! They stay as-is.
# Listed here for documentation:
# my-public-app, another-public-app
# Emails
"me@mysite.dev": "{email}"
patterns:
'/Users/[^/\s]+/': '/Users/{username}/'
'/home/[^/\s]+/': '/home/{username}/'
# Dash-flattened home paths (e.g. project dirs like -Users-<name>-Dev)
'-Users-[^-/\s]+-': '-Users-{username}-'
'-home-[^-/\s]+-': '-home-{username}-'
audit_patterns:
- 'your-gh-user'
- 'yoursite\.dev'
- 'Jane'
- 'my-secret-project'
- 'private-tool'
skip:
- 'agent-memory/**'
- 'plans/**'
- 'projects/**'
- 'plugins/**'
- 'settings.json'
- 'settings.local.json'
file_map:
'CLAUDE.md': 'CLAUDE.md'
'commands/*.md': 'commands/'
'agents/*.md': 'agents/'
'skills/**/*.md': 'skills/'
'skills/**/*.sh': 'skills/'
'hooks/**/*.sh': 'hooks/'
'hooks/*.md': 'hooks/'
'rules/*.md': 'rules/'
# Extra files outside ~/.claude/ that should also be synced + anonymized.
# NOTE: docs/workflow-guide.html is generated from live config by
# scripts/generate_workflow_guide.py (invoked by sync.py), which anonymizes
# its own output — do not list it here or it would be double-written.
extra_files: {}