docs(skills): add repo-scoped task skills and give each fact one home (#337)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-02 10:13:03 +08:00
1 parent 1f8db1fccf
commit b2ec56db66
18 files changed
+965 -58

No files matched your search

+5 -1
View File
@@ -121,6 +121,9 @@ For an impactful change, follow these steps in order, scaled to its risk:
for one-off tools, and the project's existing toolchain (e.g. its flake, `uv`, `pnpm`) for its
dependencies; ask before creating a flake or installing another way.
- Use `gh` for authorized GitHub operations; keep SSH for GitHub Git remotes.
- Upstream source checkouts (nixpkgs and similar) live under `~/codes/src/<repo>`. Before reading a
lot of upstream source, check there first; if the checkout exists, `git pull` it and read it
locally instead of relying only on the GitHub API or making a fresh clone.
### Tool execution
@@ -158,4 +161,5 @@ For an impactful change, follow these steps in order, scaled to its risk:
- Agents MUST respond in the user's language (default English); use English for code, commands,
identifiers, and comments.
- Be concise, concrete, and action-oriented.
- Be concise, concrete, and action-oriented: lead with the next action or the answer, number
multi-step work, restate state across turns, suppress tangents, and make progress visible.
+11
View File
@@ -5,6 +5,17 @@ Reusable, symlink-first agent resources shared across projects.
This directory is the canonical source for baseline agent rules and supporting command references.
The primary workflow is to symlink files from here into each agent runtime/config location.
It is shared across projects. Repo-scoped task procedures for one repository belong elsewhere: put
them in that repository's `.agents/skills/` (note the leading dot), which OpenCode and compatible
tools discover automatically. In a repository, use the layers this way:
- `AGENTS.md`: always-loaded map and hard safety rules; keep it short.
- `*.md` / `README.md`: reference and domain runbooks for people, kept next to the code they
describe.
- `.agents/skills/*/SKILL.md`: on-demand procedures, verification steps, and agent-only constraints.
Keep one canonical home for each fact; link between layers instead of copying paragraphs.
## What this directory contains
- `AGENTS.md`: global baseline rules for coding agents.
+4
View File
@@ -3,6 +3,10 @@
Reference commands for listing, installing, and updating skills via `npx skills`. Keep the global
set small and install task-specific skills in the relevant project.
This repository's own skills live in `.agents/skills/`: they are tracked in git and discovered
automatically, so do not install, overwrite, or remove them with `npx skills`. The commands below
are for external and global skills.
## Inspect and update installed skills
```bash