dyz-gongwen-skills
公文写作 Skills|AI 公文写作助手:防编造、守保密、GB/T 9704 一键排版,覆盖 22 种文书,支持 Claude Code / Codex / Cursor
翻訳待ち
No updates detected yet. GitHub releases will appear here.
Team skills and learnings for AI assistants
翻訳待ち
Loading the full README.
Read the full README ↗Teams use many AI tools (Cursor, Claude Code, Zed, Codex, …). Each session starts cold: no shared workflows, no institutional memory, and knowledge trapped in chats or private notes.
Shared Agents gives you one place to:
.mdc, others via AGENTS.md / CLAUDE.md)Everyone syncs the same content. Agents load it automatically at session start. Sensitive team data stays in a private repo, not public.
| Piece | Role |
|---|---|
| Core (this repo) | Open-source CLI (sa), adapters, shared skills, installer |
| Team (your private Git remote) | Learnings, team rules, and team-only skills under team/ |
| Local install | ~/.shared-agents (or $SHARED_AGENTS_HOME) on each machine |
GitHub (Core) Your private remote (Team)
│ │
└────────── sa sync ───────────┘
│
▼
~/.shared-agents ──► Cursor · Claude Code · Grok Build · Zed · …
sa reviewteam/rules/*.mdc; manage with sa skill / sa rule; teammates sa synccurl -fsSL https://raw.githubusercontent.com/netgrade-digital/shared-agents/refs/heads/main/scripts/bootstrap.sh | bash
The bootstrap wizard installs Core, optionally wires your team repo, and configures detected tools. Then open a new shell and run sa.
Non-interactive (CI/scripts): SA_BOOTSTRAP_NON_INTERACTIVE=1 curl -fsSL … | bash
| Task | Command |
|---|---|
| Pull latest Core + team; link skills + rules | sa sync |
| Fix symlink / rule link issues | sa doctor --fix |
| Overview / all commands | sa or sa help |
| First-time adapter setup (hooks, base blocks) | sa install |
| Adapter health | sa check |
| Review a learning draft | sa review |
| List team skills / rules | sa skill list · sa rule list |
| Create team skill / rule (wizard) | sa skill new · sa rule new |
| Remove team skill / rule | sa skill rm [name] · sa rule rm [slug] |
sa sync doesAfter pulling Core + team (ff-only):
skills/ + team/skills/ → ~/.agents/skills, ~/.claude/skills, …rules/ + team/rules/ → ~/.cursor/rules/<!-- shared-agents:team-rules:begin/end --> in each tool's AGENTS.md / CLAUDE.mdAlso runs quietly via IDE session hooks where configured. sa install is still required once per tool (hooks, base <!-- shared-agents:begin --> block).
Lives in your private team repo under team/skills/ and team/rules/ — not in Core PRs. No pending/review workflow (unlike learnings).
sa skill new # wizard → team/skills/<name>/SKILL.md
sa rule new # wizard → team/rules/<slug>.mdc
sa skill rm [name] # remove (picker if name omitted)
sa rule rm [slug]
Create/remove wizards commit + push by default (Enter = yes; --no-git to skip). Then teammates run sa sync.
Dev checkout: ./sa sync from this repo uses scripts from the clone (even before ~/.shared-agents is updated). Shell alias sa uses $SHARED_AGENTS_HOME/scripts/ — refresh with ./sa install after pulling Core changes.
shared-agents/
├── skills/ # Core skills (synced to ~/.agents/skills, etc.)
├── rules/ # Core rules (.mdc) — Cursor symlinks + AGENTS.md merge
├── adapters/ # Per-tool wiring (manifest.json + docs)
├── scripts/ # sa CLI, sync, bootstrap, learning tools
├── docs/ # Detailed guides
└── team/ # Private team data (gitignored here — separate remote)
├── learnings/ # pending/ + approved/ (review via sa review)
├── rules/ # flat *.mdc (like team/skills/)
└── skills/
Install path defaults to ~/.shared-agents. Team data lives under team/ inside that directory.
| Topic | Guide |
|---|---|
| Overview | docs/overview.md |
| Installation | docs/installation.md |
| CLI reference | docs/cli-reference.md · sa help |
| Skills & rules | docs/skills-and-rules.md |
| Learnings workflow | docs/learnings.md |
| Canonical paths | docs/canonical-paths.md |
| Adapters | docs/adapters.md |
| Team setup | docs/team-setup.md |
| Troubleshooting | docs/troubleshooting.md |
| Contributing | CONTRIBUTING.md · docs on website |
| Shared MCPs (draft) | docs/shared-mcps.md |
Migrate legacy learnings/ | docs/migration-team-data.md |
Contributions to Core (adapters, CLI, docs, shared skills, shared rules) are welcome. Team learnings and team rules belong in your private team repo, not in pull requests here.
See CONTRIBUTING.md.
MIT — maintained by netgrade-digital.