summaryrefslogtreecommitdiff
path: root/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-17 08:22:30 +0200
committerPaul Buetow <paul@buetow.org>2026-02-17 08:22:30 +0200
commit7f16c98bdc95ebbbd59130eecf65233fda3ea86c (patch)
tree892670f5ba26065cf944c3ae54c362ae334c7563 /Rexfile
parent917fd57eb2fe597eafb4ae6e714250b9c1d02c16 (diff)
Convert commands and context to skills, add skills symlinks to Rexfile
Move purge-file-from-git, compose-blog-post, increment-version-and-push from commands to skills format, and convert go-best-practices from context to a skill. Update Rexfile home_prompts task to symlink both commands and skills directories for cursor, claude, agents, and opencode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Rexfile')
-rw-r--r--Rexfile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Rexfile b/Rexfile
index 2c85049..c29bcea 100644
--- a/Rexfile
+++ b/Rexfile
@@ -145,23 +145,24 @@ task 'home_helix', sub { ensure "$DOT/helix/*" => "$HOME/.config/helix/" };
desc 'Install ~/.config/ghostty';
task 'home_ghostty', sub { ensure "$DOT/ghostty/*" => "$HOME/.config/ghostty/" };
-desc 'Install promps links for AI tools';
+desc 'Install prompt links for AI tools';
task 'home_prompts', sub {
if ( -d "$HOME/Notes/Prompts/commands" ) {
Rex::Logger::info("Installing prompt links");
- # Install to ~/.cursor/commands/ for Cursor
- file "$HOME/.cursor" => ensure => 'directory', mode => '0750';
- symlink "$HOME/Notes/Prompts/commands" => "$HOME/.cursor/commands" or die "Could not create symlink: $!";
+ my @tool_dirs = ( '.cursor', '.claude', '.agents', '.opencode' );
- file "$HOME/.claude" => ensure => 'directory', mode => '0750';
- symlink "$HOME/Notes/Prompts/commands" => "$HOME/.claude/commands" or die "Could not create symlink: $!";
+ for my $tool_dir (@tool_dirs) {
+ file "$HOME/$tool_dir" => ensure => 'directory', mode => '0750';
- file "$HOME/.agents" => ensure => 'directory', mode => '0750';
- symlink "$HOME/Notes/Prompts/commands" => "$HOME/.agents/commands" or die "Could not create symlink: $!";
+ # Symlink commands directory
+ symlink "$HOME/Notes/Prompts/commands" => "$HOME/$tool_dir/commands"
+ or die "Could not create commands symlink for $tool_dir: $!";
- file "$HOME/.opencode" => ensure => 'directory', mode => '0750';
- symlink "$HOME/Notes/Prompts/commands" => "$HOME/.opencode/commands" or die "Could not create symlink: $!";
+ # Symlink skills directory
+ symlink "$HOME/Notes/Prompts/skills" => "$HOME/$tool_dir/skills"
+ or die "Could not create skills symlink for $tool_dir: $!";
+ }
}
else {
Rex::Logger::info("Not installing prompt links");