Skip to content

Commit b2635aa

Browse files
committed
🗄 [chore][ai-config] minor AI config updates
1 parent aa14098 commit b2635aa

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Global `AGNETS.md`
1+
# Global AI Instruction
2+
3+
## Alternative context
4+
5+
Check both `AGENTS.md` / `CLAUDE.md` in the project directory.
26

37
## Shell conventions
48

5-
- Never prefix git commands with `cd /path/to/root &&`
6-
- Instead use `git -C /path/to/root <subcommand>` if a specific cwd is needed
7-
- Prefer repo-root-relative paths explicitly over cd'ing
89
- To check whether an env var is set, use `printenv SOME_ENV` (never `env | grep` or bare `env`)
910
- Use `rg` (ripgrep) instead of `grep` for searching: faster, respects `.gitignore`, and has better defaults
1011
- Use `fd` instead of `find` for file lookups: faster, respects `.gitignore`, and has saner syntax
@@ -18,6 +19,11 @@
1819
- Rewrite with commas, periods, or parentheses instead
1920
- Applies to prose only. Keep punctuation inside code, config, or copied quotes untouched
2021

22+
## Self-Improvement
23+
24+
- If you believe the `AGENTS.md` / `CLAUDE.md` you've read is outdated or not aligned with what you've found, proposed fix at the end of the task.
25+
- If a skill is invoked to complete the task and the output required corrections or the user expressed dissatisfaction, ask user if they want to update
26+
2127
## Language conventions
2228

23-
- If the prompt is in Chinese, respond with Traditional Chinese characters, and think/research as a Taiwanese
29+
- If the prompt is in Chinese, respond with Traditional Chinese characters, and think/research as a Taiwanese.

pkg/ai-config/ai-config.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
AGENTS_MD="$(pwd)/pkg/ai-config/AGENTS.md"
4+
AGENTS_MD="$(pwd)/pkg/ai-config/GLOBAL-AGENTS.md"
55
STARSHIP_CLAUDE_DIR="${HOME}/.local/bin"
66
STARSHIP_CLAUDE_PATH="${STARSHIP_CLAUDE_DIR}/starship-claude"
77

@@ -19,9 +19,9 @@ link_agents_md "${HOME}/.claude/CLAUDE.md"
1919

2020
# Install skills
2121
SKILLS_PARAMS=(--agent universal --agent claude-code --global --yes)
22-
npx skills add vercel-labs/skills --skill find-skills "${SKILLS_PARAMS[@]}"
23-
npx skills add anthropics/skills --skill skill-creator "${SKILLS_PARAMS[@]}"
24-
npx skills add ./pkg/ai-config/skills --skill '*' "${SKILLS_PARAMS[@]}"
22+
npx --yes skills add vercel-labs/skills --skill find-skills "${SKILLS_PARAMS[@]}"
23+
npx --yes skills add anthropics/skills --skill skill-creator "${SKILLS_PARAMS[@]}"
24+
npx --yes skills add ./pkg/ai-config/skills --skill '*' "${SKILLS_PARAMS[@]}"
2525

2626
# Install Claude status bar
2727
mkdir -p "${STARSHIP_CLAUDE_DIR}"

0 commit comments

Comments
 (0)