Skip to content

Commit 62206f0

Browse files
committed
fixes
1 parent c11f204 commit 62206f0

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The tool searches for a variety of files and directories, including:
9797
- `.agents/rules`, `.cursor/rules`, `.augment/rules`, `.windsurf/rules`
9898
- `.github/copilot-instructions.md`, `.gemini/styleguide.md`
9999
- `AGENTS.md`, `CLAUDE.md`, `GEMINI.md` (and in parent directories)
100-
- User-specific rules in `~/agents/rules`, `~/.claude/CLAUDE.md`, etc.
100+
- User-specific rules in `~/.agents/rules`, `~/.claude/CLAUDE.md`, etc.
101101
- System-wide rules in `/etc/agents/rules`.
102102

103103
## File Formats
@@ -120,7 +120,6 @@ Rule files are Markdown (`.md`) or `.mdc` files, optionally with YAML frontmatte
120120
**Example (`.agents/rules/backend.md`):**
121121
```markdown
122122
---
123-
system: backend
124123
language: Go
125124
---
126125

@@ -134,17 +133,21 @@ To include this rule only when working on the backend, you would use `-s system=
134133

135134
### Bootstrap Scripts
136135

137-
A bootstrap script is an executable file that has the same name as a rule file but with a `-bootstrap` suffix.
136+
A bootstrap script is an executable file that has the same name as a rule file but with a `-bootstrap` suffix. These scripts are used to prepare the environment, for example by installing necessary tools. The output of these scripts is sent to `stderr` and is not part of the AI context.
138137

139138
**Example:**
140139
- Rule file: `.agents/rules/jira.md`
141140
- Bootstrap script: `.agents/rules/jira-bootstrap`
142141

143-
If `jira-bootstrap` is an executable script, it will be run, and its standard output will be included as part of the context.
142+
If `jira-bootstrap` is an executable script, it will be run before its corresponding rule file is processed.
144143

145144
**`.agents/rules/jira-bootstrap`:**
146145
```bash
147146
#!/bin/bash
148-
echo "## Jira Issue Details"
149-
jira-cli get-issue ${jira_issue_key}
150-
```
147+
# This script installs the jira-cli if it's not already present.
148+
if ! command -v jira-cli &> /dev/null
149+
then
150+
echo "Installing jira-cli..." >&2
151+
# Add installation commands here
152+
fi
153+
```

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func run(ctx context.Context, args []string) error {
116116
"../../GEMINI.md",
117117

118118
// user
119-
filepath.Join(homeDir, "agents", "rules"),
119+
filepath.Join(homeDir, ".agents", "rules"),
120120
filepath.Join(homeDir, ".claude", "CLAUDE.md"),
121121
filepath.Join(homeDir, ".codex", "AGENTS.md"),
122122
filepath.Join(homeDir, ".gemini", "GEMINI.md"),

0 commit comments

Comments
 (0)