native-cpp-memory

用于诊断或修复原生 C++ 代码中所有权、生命周期或分配器缺陷的技能模块,面向发现并处理与对象所有权、生命周期管理和内存分配器相关的问题。

仓库最近推送
GitHub Stars
218
Forks
33
Issues / PRs
5

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "native-cpp-memory":https://skillpi.com/zh/skills/deepskill-b2d97e4f14b6e12413c77b1ba14938d034d9ee9c348afda36f2a888476be0e52。安装前核对上游来源和版本:https://github.com/AnastasiyaW/codex-claude-code-config。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于诊断或修复原生 C++ 代码中所有权、生命周期或分配器缺陷的技能模块,面向发现并处理与对象所有权、生命周期管理和内存分配器相关的问题。

0 下载

介绍来源: third_party · AnastasiyaW · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: native-cpp-memory
description: Use this skill when diagnosing or correcting ownership, lifetime, or allocator defects in native C++ code.
metadata:
  version: "1.0.0"

Native C++ Memory

Use current code and a causal reproducer before changing ownership.

Gotchas

  • deleteLater does not prove the receiving event loop will run.

Troubleshooting

  • Crash after thread shutdown -> trace object affinity and the final event-loop turn.

版本历史

  1. v2026.10.24 GitHub ↗
    原版更新说明

    Three ideas from this month's agent-harness news, adopted as checks rather than prompts. ## New - **Output legibility** — [`docs/output-legibility.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/output-legibility.md). Karpathy's readability ladder (STE-style text, diagram, HTML, video), plus the two ASD-STE100 rules that need no licensed dictionary: one concept keeps one term, and sentences stay short. - **`scripts/term_drift_check.py`** — checks agent output against a project glossary. It flags synonyms of your terms (`stem*` covers inflection, so it works in Russian too) and overlong sentences, and skips code, URLs and HTML comments. Exit `0` clean, `1` findings, `2` not checked. It ships with a self-test whose must-fail controls catch six deliberate breaks of the logic. - **Bounded harness-improvement pilot** — [`docs/harness-improvement-pilot.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/docs/harness-improvement-pilot.md). The method behind Google Research's Harness², without the auto-patcher: a frozen suite with a held-out case, one change per candidate, strict improvement and no safety regression. - **Dead-code sweep** — a new reference in the `refactoring-safely` skill, after OpenAI's GPT-6 maintenance guide. It covers a read-only audit with production evidence and one small draft PR per removal, and keeps killswitches and safeguards out of scope. ## Changed - `rules/quality-code.md`: when you change code, update or delete the comment next to it in the same commit. Research suggests a wrong or stale comment misleads a model more than a missing one. - `CLAUDE.md`: new Harness² and Output Legibility sections. Full changelog: [`UPDATES.md`](https://github.com/AnastasiyaW/codex-claude-code-config/blob/main/UPDATES.md) · PRs #18, #19

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值75/100

亮点

  • 针对原生 C++ 内存管理的常见痛点(所有权、生命周期、分配器缺陷)提供实用指导
  • 适用于专业开发者场景,具备明确的工程价值
触发精准85/100

亮点

  • 触发词精准覆盖诊断与修复两大核心场景
  • 描述清晰,边界明确,不易误触
结构规范60/100

待提升项

  • 缺少端到端示例 原报告严重程度:轻微

    文档提供了 Troubleshooting 条目,但缺少完整的端到端使用示例

    改进建议:补充一个完整的诊断与修复流程示例,展示从问题识别到解决方案的全过程

  • 缺少明确的出口条件 原报告严重程度:轻微

    未说明何时可以确认问题已解决或何时应停止诊断

    改进建议:增加出口条件说明,如'当对象生命周期与线程亲和性匹配且无悬空指针时,可确认修复完成'

亮点

  • 文档结构清晰,分 Gotchas 和 Troubleshooting 两个实用部分
执行可靠70/100

待提升项

  • 异常处理覆盖不足 原报告严重程度:轻微

    未覆盖多线程环境下可能出现的竞态条件等异常场景

    改进建议:补充多线程环境下的异常处理建议,如使用线程安全分析工具或内存屏障

亮点

  • 提供了关键的内存管理陷阱提醒(deleteLater 陷阱)
  • 给出了具体的诊断方向(追踪对象亲和性和事件循环)
证据可验 (前四项均值)73/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。