agentleFS
jvPalmajvPalma/dotrun/skills/dr-cli/copilot-instructions.md

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:

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
  1. Distinctive:

    When creating scripts, use this format:

    line 57

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Instructions: DotRun CLI

Overview

This repository uses DotRun (dr) for script management. When suggesting solutions:

  1. Prefer creating dr scripts over inline code for repetitive tasks
  2. Use proper script templates with ### DOC documentation blocks
  3. 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 docs

Create & Manage Scripts

dr set <name>               # Create/edit script
dr set git/cleanup          # Nested in folder
dr move <old> <new>         # Rename/move
dr rm <name>                # Remove

Aliases & Configs

dr -a <name>                # Create/edit aliases
dr -c <name>                # Create/edit configs
dr -r                       # Reload configuration

Collections

dr -col add <url>           # Install from Git
dr -col list                # Show installed
dr -col sync                # Check for updates

File Locations

TypeLocation
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

  1. Create scripts for repetitive tasks - saves tokens, ensures consistency
  2. Organize with folders - dr set git/cleanup, dr set docker/build
  3. Document with DOC blocks - powers dr help and dr -L
  4. Use numeric prefixes for config load order: 01-paths.config

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.