Skip to content
Prompt

debateclub-firecrawled — Cursor Rules

by ff6347

AI Summary

This Cursor rules booster enforces fish shell as the default shell by rejecting bash/sh shebangs and promoting fish shell configuration across Docker, environment, and build files. It's useful for teams standardizing on fish shell in their development environments.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "debateclub-firecrawled — Cursor Rules" prompt rules to my project.
Repository: https://github.com/ff6347/debateclub-firecrawled

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

default shell is fish shell

Fish Shell Usage Standards

Standards for using fish as the default interactive shell. <rule> name: use_fish_shell description: Standards for fish shell configuration and usage filters: # Match shell configuration files • type: file_name pattern: "(Dockerfile|docker-compose\\.ya?ml|\\.tool-versions|\\.envrc(\\..*)?|justfile|Makefile)$" # Match shell script files • type: file_extension pattern: "\\.(sh|bash|zsh|fish)$" # Match file creation and modification events • type: event pattern: "(file_create|file_modify)" actions: • type: reject conditions: • pattern: "#!/bin/(ba)?sh" message: "Use fish shell shebang (#!/usr/bin/env fish) for scripts" • pattern: "SHELL=/bin/(ba)?sh" message: "Set SHELL to fish in Makefiles and Docker configurations" • type: suggest message: | When working with shell configurations: • Shell specifications: `dockerfile # In Dockerfiles SHELL ["/usr/bin/env", "fish", "-c"] # In scripts #!/usr/bin/env fish ` • Required configurations: ` PROJECT_ROOT/ ├── .tool-versions # Include fish version ├── .envrc # Set SHELL if needed └── justfile # Use fish for commands ` • Shell script standards: • Use fish syntax for all scripts • Avoid POSIX-specific commands • Use fish alternatives for common operations • Document fish-specific features • Development environment: • Set fish as default shell • Use fisher for plugin management • Configure direnv for fish • Use fish_add_path for PATH management • CI/CD considerations: • Specify fish in CI runners • Include fish installation steps • Use fish for test scripts • Handle fish compatibility examples: • input: | # Bad: Using bash #!/bin/bash for i in $(seq 1 5); do echo $i done # Good: Using fish #!/usr/bin/env fish for i in (seq 1 5) echo $i end output: "Correctly formatted fish script" • input: | # Bad: Makefile with bash SHELL := /bin/bash .PHONY: test test: for f in *.txt; do echo $$f; done # Good: Makefile with fish SHELL := /usr/bin/env fish .PHONY: test test: for f in *.txt; echo $$f; end output: "Properly configured Makefile for fish" metadata: priority: high version: 1.0 </rule>

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 11mo ago
Stale
AdoptionUnder 100 stars
1 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars1
Issues2
Updated11mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more