基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lev-os/agents --skill gh-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Routes adaptive multi-agent deliberation with fractal context cycles. Use when using /cdo, think/deep/debug/parliament work, or long runs paired with autoresearch scheduling.
Use when you need an evidence-first provenance report from `cass`, repo docs, `.lev`, `~/.agents/diagrams`, `qmd`, or Grep/Glob tools.
Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions, high fan-out, refactor candidates, code quality audit, graph query syntax, Cypher query examples, edge types, how to use search_graph.
| name | gh-cli |
| description | GitHub CLI (gh) for repos, issues, PRs, actions, releases. Use when working with GitHub or running gh commands. |
Core Capability: Interact with GitHub repositories and services from the command line using
gh.
# Install
# macOS
brew install gh
# Linux (Debian/Ubuntu)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update && sudo apt install gh
# Check auth
gh auth status
# Login
gh auth login
# Clone repo
gh repo clone owner/repo
# Create PR from current branch
gh pr create --fill
# Create PR with title/body
gh pr create --title "Add feature" --body "Description"
# View PR
gh pr view 45
gh pr view 45 --web
# Checkout PR locally
gh pr checkout 45
# Review PR
gh pr review 45 --approve
gh pr review 45 --request-changes --body "Please fix X"
# Merge PR
gh pr merge 45 --squash
gh pr merge 45 --merge --delete-branch
# List issues
gh issue list
# Create issue
gh issue create --title "Bug: Login fails" --body "Description"
# View issue
gh issue view 123
# Close issue
gh issue close 123
# Comment on issue
gh issue comment 123 --body "Working on this"
# Add labels
gh issue edit 123 --add-label "bug,priority:high"
# List workflow runs
gh run list
# View run details
gh run view 12345
# Watch run in progress
gh run watch 12345
# View logs
gh run view 12345 --log
# Rerun failed jobs
gh run rerun 12345 --failed
# Run workflow manually
gh workflow run deploy.yml -f environment=production
# Create release
gh release create v1.0.0 --title "Version 1.0" --generate-notes
# Upload assets
gh release upload v1.0.0 ./dist/app.zip
# Download assets
gh release download v1.0.0
| Category | Command | Description |
|---|---|---|
| Repo | gh repo clone owner/repo | Clone repository |
| Repo | gh repo create my-repo --public | Create new repo |
| PR | gh pr create --fill | Create PR from branch |
| PR | gh pr checkout 45 | Checkout PR locally |
| PR | gh pr merge 45 --squash | Merge with squash |
| Issue | gh issue create --title "X" | Create issue |
| Issue | gh issue list | List issues |
| Actions | gh run list | List workflow runs |
| Actions | gh run watch | Watch current run |
| Release | gh release create v1.0 | Create release |
# Create branch, commit, push, create PR
git checkout -b feature/my-feature
# ... make changes ...
git add . && git commit -m "Add feature"
git push -u origin feature/my-feature
gh pr create --fill
# Review and merge
gh pr checkout 45
gh pr review --approve
gh pr merge --squash --delete-branch
Copy this to your project's AGENTS.md:
### GitHub CLI (gh)
The `gh` CLI is configured and authenticated.
Common tasks:
- Create PR: `gh pr create --fill`
- List open PRs: `gh pr list`
- Check CI status: `gh pr checks`
- Create issue: `gh issue create --title "..." --body "..."`
Repo: `https://github.com/<OWNER>/<REPO>`
gh pr checksgh pr view 123 --commentsgh run watch| Topic | Reference |
|---|---|
| Full command reference | COMMANDS.md |
| API & GraphQL | API.md |
| Common workflows | WORKFLOWS.md |