Skip to content
Back to skills

Code Grounding

ASecurity

代码事实核查技能。修改代码前必须核验真实活跃入口、调用方/消费者与已有测试,防止改到废弃副本或重复造轮子。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agents

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add yjfkpyu/AgentLock-Harness --skill code-grounding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Grounding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Grounding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yjfkpyu-code-grounding-agentlock-harness/badge)](https://www.skillsdirectory.com/skills/yjfkpyu-code-grounding-agentlock-harness)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-grounding
description: 代码事实核查技能。修改代码前必须核验真实活跃入口、调用方/消费者与已有测试,防止改到废弃副本或重复造轮子。
---

# Code Grounding — 真实入口与消费者核查

## 执行步骤(完成后交棒 `atomic-tdd`)

1. **核查现场工作区**:先检查分支与未提交改动,严禁覆盖他人工作;`SESSION.md` 不替代现场事实。
2. **沿真实调用链定位**:确认目标文件确实被活跃路由/导出/注册表调用,排除同名废弃文件。
3. **先判复用再新增**:搜索未命中不等于不存在,检查别名、忽略目录与生成代码后再决定新建。
4. **严格区分三类事实**:规范要求(应该怎样)≠ 代码现状(现在怎样)≠ 验证证据(什么条件下测过什么)。

## 反偷懒 / 反理性化对照表

| 常见错误借口 | 强制反制动作 |
| :--- | :--- |
| “文件名看起来就是它,直接改吧” | 必须先 `grep`/追踪到至少 1 个活跃调用方或导出入口,确认代码真的在运行路径上 |
| “旧代码和测试都这样写,把规范改了吧” | 规范与代码冲突时先查证缺陷来源,**严禁用缺陷代码倒改正确规范** |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.