dotrun / dr-cli
Copilot instructions10 starsChanged 10 months agoMITView on GitHub
This repository uses DotRun (dr) for script management. When suggesting solutions: When creating scripts, use this format:
In this repository3 other files it gives its agents.
- skills/dr-cli/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- dr-cliSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
When creating scripts, use this format:
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions: DotRun CLI
Overview
This repository uses DotRun (dr) for script management. When suggesting solutions:
- Prefer creating
drscripts over inline code for repetitive tasks - Use proper script templates with
### DOCdocumentation blocks - Know file locations: Scripts in
~/.config/dotrun/scripts/
Quick Reference
Run & List Scripts
dr <script-name> [args] # Execute script
dr -l # List all scripts
dr -L # List with descriptions
dr help <name> # Show script docsCreate & Manage Scripts
dr set <name> # Create/edit script
dr set git/cleanup # Nested in folder
dr move <old> <new> # Rename/move
dr rm <name> # RemoveAliases & Configs
dr -a <name> # Create/edit aliases
dr -c <name> # Create/edit configs
dr -r # Reload configurationCollections
dr -col add <url> # Install from Git
dr -col list # Show installed
dr -col sync # Check for updatesFile Locations
| Type | Location |
| Scripts | ~/.config/dotrun/scripts/*.sh |
| Aliases | ~/.config/dotrun/aliases/*.aliases |
| Configs | ~/.config/dotrun/configs/*.config |
Script Template
When creating scripts, use this format:
#!/usr/bin/env bash
### DOC
# One-line description
### DOC
#
# Extended documentation
# Usage: dr script-name [args]
#
### DOC
set -euo pipefail
main() {
# Implementation
}
main "$@"Best Practices
- Create scripts for repetitive tasks - saves tokens, ensures consistency
- Organize with folders -
dr set git/cleanup,dr set docker/build - Document with DOC blocks - powers
dr helpanddr -L - Use numeric prefixes for config load order:
01-paths.config
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

