.claude/skills/analyze-pr/SKILL.md
# Analyze PR 分析 GitHub Pull Request,评估必要性、描述完整性、验证证据、主要风险与是否可直接合入。 **Repository**: https://github.com/ZhuLinsen/daily_stock_analysis/pulls ## Usage ```text /analyze-pr <pr_number> ``` ## Instructions 分析时使用简洁中文,优先遵循仓库根目录 `AGENTS.md` 和 `.github/PULL_REQUEST_TEMPLATE.md`。 ### Step 1: 拉取 PR 基本信息 ```bash gh pr view <pr_number> --repo ZhuLinsen/daily_stock_analysis gh pr view <pr_number> --repo ZhuLinsen/daily_stock_analysis --comments gh pr checks <pr_number> --repo ZhuLinsen/daily_stock_anal
npx skillsauth add andyppang/daily_stock_analysis .claude/skills/analyze-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
分析 GitHub Pull Request,评估必要性、描述完整性、验证证据、主要风险与是否可直接合入。
Repository: https://github.com/ZhuLinsen/daily_stock_analysis/pulls
/analyze-pr <pr_number>
分析时使用简洁中文,优先遵循仓库根目录 AGENTS.md 和 .github/PULL_REQUEST_TEMPLATE.md。
gh pr view <pr_number> --repo ZhuLinsen/daily_stock_analysis
gh pr view <pr_number> --repo ZhuLinsen/daily_stock_analysis --comments
gh pr checks <pr_number> --repo ZhuLinsen/daily_stock_analysis
gh pr diff <pr_number> --repo ZhuLinsen/daily_stock_analysis
如有失败的 CI,优先查看失败日志,而不是立刻在本地重跑全部检查:
gh run view <run_id> --log-failed
对照 .github/PULL_REQUEST_TEMPLATE.md,确认是否覆盖:
PR TypeBackground And ProblemScope Of ChangeIssue LinkVerification Commands And ResultsCompatibility And RiskRollback Plangh pr checks、PR diff、现有测试与工作流日志判断问题gh pr checkout如果必须补本地验证,按改动面选择最接近的检查,例如:
./scripts/ci_gate.sh 或 python -m py_compile <changed_python_files>cd apps/dsa-web && npm ci && npm run lint && npm run build重点检查:
保存到 .claude/reviews/prs/pr-<number>.md
# PR #<number> Analysis
**Date**: YYYY-MM-DD
**Status**: Pending Review
## Findings
- [严重级别] file:line - 问题描述
## Summary
- 必要性:
- 是否有对应 issue:
- PR 类型:
- description 完整性:
- 验证情况:
- 主要风险:
- 是否可直接合入:
## Validation Evidence
- CI 结论:
- 本地补充验证(如有):
## Compatibility And Risk
- API / Web / Desktop:
- 配置 / Docker / GitHub Actions:
- fallback / 通知 / 报告结构:
## Draft Review Comment
<建议评论内容>
执行以下动作前,先询问用户:
tools
分析股票和市场。当用户想要分析单个或多个股票,或进行市场复盘时调用。
data-ai
# Fix Issue 基于 issue 分析结果实现修复,并按仓库规则补齐验证、风险与回滚说明。 **Repository**: https://github.com/ZhuLinsen/daily_stock_analysis ## Usage ```text /fix-issue <issue_number> ``` ## Prerequisites 优先先完成 `/analyze-issue <issue_number>`,确保问题成立且边界清晰。 ## Instructions ### Step 1: 确认分析基线 检查 `.claude/reviews/issues/issue-<number>.md` 是否存在;如果不存在,先补做 issue 分析或在本次修复中补齐最小分析结论。 ### Step 2: 选择安全的工作方式 - 默认基于当前工作树做最小相关改动 - 不要默认执行 `git pull` - 不要默认切换分支或改写用户当前工作状态 - 如果用户明确要求建分支,再执行最小必要的分支操作 ### Step 3: 实施修复 - 根据 iss
documentation
# Analyze Issue 分析 GitHub Issue,判断其真实性、优先级、仓库责任边界与建议动作。 **Repository**: https://github.com/ZhuLinsen/daily_stock_analysis/issues ## Usage ```text /analyze-issue <issue_number> ``` ## Instructions 分析时使用简洁中文,优先遵循仓库根目录 `AGENTS.md`。 ### Step 1: 拉取 Issue 信息 ```bash gh issue view <issue_number> --repo ZhuLinsen/daily_stock_analysis gh issue view <issue_number> --repo ZhuLinsen/daily_stock_analysis --comments ``` 如为 bug,优先核对 issue 模板中是否提供了以下信息: - 是否已同步到最新版本 - commit hash / 版本基线 - 运行环境与复现步骤 -
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".