cc-defensive-programming
Installation
Review the source and dependencies with a prompt.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cc-defensive-programming" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ca9b0b2ad5a9d635b35473f2b3f314c1fcdc84a8b3a5569cbdbf3663b6f3c99b. Verify the upstream source and version against https://github.com/ryanthedev/code-foundations before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
A complete, approved package is not available yet.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Apply Code Complete defensive programming rules: context-appropriate isolation design, sensible choices between assertions and error handling, input validation strategies, and tradeoffs between correctness and robustness. Use to harden code at trust boundaries, not to diagnose a current fault; use cc-debugging for that. Not for post-completion verification; use aposd-verifying-correctness.
Introduction source: third_party · ryanthedev · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Applies Code Complete's defensive programming rules: barricade design, assertion vs error-handling selection, input validation policy, and correctness-vs-robustness strategy for the current context. For hardening code at trust boundaries; not for diagnosing an active failure (use cc-debugging) or post-completion verification (use aposd-verifying-correctness).
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
A verified file list is not available on Skillπ yet.
Browse files at the source ↗Skillπ does not display the original SKILL.md on this page. View the original source ↗ The source site governs the file contents, license, and use terms.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供《代码大全》权威防御性编程实践
- 覆盖断言、错误处理、输入验证等核心工程化最佳实践
- 适用于软件开发人员在信任边界加固代码
Highlights
- 明确说明用途与排除场景
- 提供替代 Skill 指引
- 触发边界清晰
Highlights
- 结构完整,章节划分清晰
- frontmatter 完整
- 涵盖多种错误处理策略和现代异步模式
Areas to improve
-
引用文件缺失 Reported severity: Minor
CHECKER 模式提到读取 checklists.md 文件,但未传入该文件
Recommendation: 请补充 checklists.md 文件或调整描述以避免依赖外部文件
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
No text check results available.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
The main document is unavailable or exceeds this check’s scope; permissions are unknown.
Security rating and access scope
risk · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.