跳到正文
cccskills
免费在 GitHub 公开

before-edit

Run before modifying a function — impact + test-map + explain in one pass, presented as a modification checklist.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Before Edit

Run before modifying any function. Shows what breaks, what tests cover it, and what to check.

Arguments

  • <function_name> — the function you're about to edit

Process

  1. Run cqs impact <function_name> --json via Bash
  2. Run cqs test-map <function_name> --json via Bash
  3. Run cqs explain <function_name> --json via Bash
  4. Present results as a checklist

Output Format

Present this to the user (fill in from the JSON results):

## Impact Analysis: <function_name>

**Signature:** <from explain>
**File:** <from explain>
**Callers (<count>):** <list top 10 caller names with files>
**Tests (<count>):** <list test names>
**Risk:** <High if >10 callers, Medium if 3-10, Low if 0-2>

### Before you edit:
- [ ] Understand what callers expect (check the top callers above)
- [ ] Note the existing tests — run them after your change
- [ ] If changing the signature or return type, update all callers

### After you edit:
- [ ] Run: `cargo test --features cuda-index -- <test_names>`
- [ ] If tests fail, check whether your change broke the caller contract
- [ ] If no tests cover the changed behavior, write one

Rules

  • If cqs impact returns empty results, the function may be dead code or a leaf node — note this
  • If cqs test-map returns empty, flag as "NO TESTS — write tests before and after editing"
  • If cqs explain fails (function not indexed), fall back to cqs "<function_name>" --name-only --json
  • Always run all 3 commands before presenting — don't skip based on partial results

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

archeo

免费

Comment-archaeology sweep - find work items hiding in TODO/FIXME/for-now comments and plan-doc ledgers, judge them, file issues, queue trivial fixes. Good idle-loop activity.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

audit

免费

Run a multi-category code audit on the cqs codebase. Spawns parallel agents per batch.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Trust-boundary security audit of cqs — fans out unbiddable-auditor agents across 6 categories (RT-INJ/RT-FS/RT-RES/RT-DATA/RT-RELAY/RT-EXFIL), attacker mindset, run-the-attack PoC + regression guard.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

Run after making changes, before committing — reviews the current git diff for impact and risk via cqs review.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

cqs

免费

Unified cqs CLI dispatcher — semantic code search, call graph navigation, impact analysis, quality tools, notes, and infrastructure. Use `/cqs <command> [args]` for any cqs operation.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

cqs-batch

免费

Execute multiple cqs queries in a single persistent session via stdin batch mode.

中文简介正在准备中。当前显示原文说明。

jamie8johnson/cqs172026年7月14日 更新

查看 jamie8johnson 的全部技能

报告此技能的问题