Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ diffity list --json # machine-readable output
| `DIFFITY_HOST` | Hostname used in the printed URL (default: `localhost`). |
| `DIFFITY_BIND` | Interface the server listens on (default: `127.0.0.1`). |
| `DIFFITY_DATA_DIR` | Where review notes are kept (default: `~/.diffity/<repo-hash>`). |
| `DIFFITY_SYNC_DEV_SKILLS` | Set to `1` to have a build install the `diffity-dev-*` skills into `~/.claude/skills`. |

Useful when running diffity inside a VM or container and opening it from another machine:

Expand Down
1 change: 1 addition & 0 deletions bin/diffity
6 changes: 4 additions & 2 deletions scripts/build-skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ writeFile(
);
console.log(`Skills hash: ${skillsHash}`);

if (process.env.DIFFITY_SKIP_DEV_SKILLS || !homeDir) {
console.log('Skipped dev skills sync');
// Opt-in: a build should not write into the user's home directory unless asked. The dev skills
// exist to drive the `diffity-dev` binary from this checkout, which is not what most builds want.
if (!process.env.DIFFITY_SYNC_DEV_SKILLS || !homeDir) {
console.log('Skipped dev skills sync (set DIFFITY_SYNC_DEV_SKILLS=1 to install them)');
} else {
cleanManagedSkills(globalClaudeSkillsDir, DEV_SKILL_PREFIX);
for (const skill of skills) {
Expand Down