Commit 3f22625f7aa9

Vincent Demeester <vincent@sbr.pm>
2026-02-02 13:01:25
fix(pi): properly manage extension in ~/.pi/agent/extensions/ via home-manager
- Add home.file symlink to put claude-hooks.ts in Pi's auto-discovery location - Remove extensions config from settings.json (not needed with auto-discovery) - This ensures Pi hooks work consistently across system rebuilds
1 parent 0249e6a
Changed files (6)
dots
.config
claude
home
common
tools
dots/.config/claude/skills/Email/tools/review-junk-bin.sh
@@ -0,0 +1,1 @@
+/home/vincent/desktop/mails/tools/review-junk-bin.sh
\ No newline at end of file
dots/.config/claude/skills/Email/SKILL.md
@@ -61,6 +61,7 @@ Located in `tools/`:
 | **smart-reindex.sh** | Intelligently reindex (detects mu4e, uses emacsclient if needed) | ✅ Yes |
 | **check-mu-lock.sh** | Check if mu database is locked | ✅ Yes (read-only) |
 | **archive-emails.sh** | Archive emails with smart reindexing | ✅ Yes |
+| **review-junk-bin.sh** | List icloud Junk and Deleted Messages for false positive review | ✅ Yes (read-only) |
 | **ExtractAttachments.sh** | Extract attachments from emails | ✅ Yes (read-only) |
 
 **Usage in scripts:**
home/common/dev/ai.nix
@@ -66,6 +66,12 @@ in
     # amp-cli
   ];
 
+  # Pi coding agent extension management
+  # Pi looks for extensions in ~/.pi/agent/extensions/ for auto-discovery
+  home.file.".pi/agent/extensions/claude-hooks.ts" = {
+    source = "${config.xdg.configHome}/pi/agent/extensions/claude-hooks.ts";
+  };
+
   # aichat configuration is now managed in dots/.config/aichat/
   # See dots/Makefile for config.yaml generation from template
 }
tools/cve-jira-issues.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+# List all CVEs in SRVKP project with their associated JIRA issues
+
+set -euo pipefail
+
+PROJECT="${1:-SRVKP}"
+
+# Get all CVE numbers from issue summaries
+jira issue list --jql "project = $PROJECT AND summary ~ 'CVE-*'" --plain --columns "SUMMARY" --no-headers | \
+  grep -oE 'CVE-[0-9]+-[0-9]+' | sort -u | \
+  while read -r CVE; do
+    ISSUES=$(jira issue list --jql "project = $PROJECT AND summary ~ '$CVE'" --plain --columns "KEY" --no-headers | tr '\n' ',' | sed 's/,$//')
+    echo "$CVE: $ISSUES"
+  done
.cache
@@ -0,0 +1,1 @@
+{"access_token": "BQACTsZdMEDUnkUp6GIUz7oGGR_FW-tDiCjAr7W5hztJY1rnuTvyzaiAqT5hQau3Wp5IttInXJD3kX62ezzsUIwqn-RczUi-R1Kb8kC87eHLFZQMfb-dG1xYL61vEc4ijjvlvPtR22A", "token_type": "Bearer", "expires_in": 3600, "expires_at": 1766416425}
\ No newline at end of file
AGENTS.md
@@ -191,6 +191,19 @@ Examples of what to ask:
 
 **Never deploy automatically** - even if it seems like the logical next step. Remote deployments can have significant impact on running services.
 
+## File Management Guidelines
+
+### Temporary Files
+- **Always write temporary scripts to `/tmp/`** instead of the home directory (`~/`)
+- Use descriptive names with appropriate extensions (e.g., `/tmp/fix-session-filenames.sh`)
+- Clean up temporary files after use with `rm` command
+- `/tmp/` files are automatically cleaned on system reboot
+
+### Working Directory
+- The working directory is `/home/vincent/src/home` which contains the main repository
+- Use relative paths when working within the repository structure
+- Use absolute paths when referencing files outside the repository
+
 ## Special Notes
 
 - The repository uses XDG base directories for Nix configuration (enabled via `use-xdg-base-directories = true`)