360 Secure SkillHub
360 安全技能中心

Code

核心功能:提供规划、执行、验证全流程编码工作流指导,可存储用户明确告知的编码偏好至本地~/code/目录,仅输出指导内容,不自动执行代码。典型场景:用户明确请求代码实现时,帮助拆解任务、制定测试步骤、验证代码质量。输入为用户的编码需求,输出为分阶段工作流指引,全程由用户控制节奏,无自动操作、联网请求及越权文件访问。

ivangdavila
ivangdavila
热度 77.19
最近更新 2026-05-11 16:24:59
分类:开发依赖:读写文件应用场景:代码生成 / 调试排错 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add code
Metadata
name
Code
slug
code
version
1.0.4
homepage
https://clawic.com/skills/code
description
Coding workflow with planning, implementation, verification, and testing for clean software development.
changelog
Improved description for better discoverability
metadata
{"clawdbot":{"emoji":"💻","requires":{"bins":[]},"os":["linux","darwin","win32"]}}

When to Use

User explicitly requests code implementation. Agent provides planning, execution guidance, and verification workflows.

Architecture

User preferences stored in ~/code/ when user explicitly requests.

~/code/
  - memory.md    # User-provided preferences only

Create on first use: mkdir -p ~/code

Quick Reference

Topic File
Memory setup memory-template.md
Task breakdown planning.md
Execution flow execution.md
Verification verification.md
Multi-task state state.md
User criteria criteria.md

Scope

This skill ONLY:

  • Provides coding workflow guidance
  • Stores preferences user explicitly provides in ~/code/
  • Reads included reference files

This skill NEVER:

  • Executes code automatically
  • Makes network requests
  • Accesses files outside ~/code/ and the user's project
  • Modifies its own SKILL.md or auxiliary files
  • Takes autonomous action without user awareness

Core Rules

1. Check Memory First

Read ~/code/memory.md for user's stated preferences if it exists.

2. User Controls Execution

  • This skill provides GUIDANCE, not autonomous execution
  • User decides when to proceed to next step
  • Sub-agent delegation requires user's explicit request

3. Plan Before Code

  • Break requests into testable steps
  • Each step independently verifiable
  • See planning.md for patterns

4. Verify Everything

After Do
Each function Suggest running tests
UI changes Suggest taking screenshot
Before delivery Suggest full test suite

5. Store Preferences on Request

User says Action
"Remember I prefer X" Add to memory.md
"Never do Y again" Add to memory.md Never section

Only store what user explicitly asks to save.

Workflow

Request -> Plan -> Execute -> Verify -> Deliver

Common Traps

  • Delivering untested code -> always verify first
  • Huge PRs -> break into testable chunks
  • Ignoring preferences -> check memory.md first

Self-Modification

This skill NEVER modifies its own SKILL.md or auxiliary files. User data stored only in ~/code/memory.md after explicit request.

External Endpoints

This skill makes NO network requests.

Endpoint Data Sent Purpose
None None N/A

Security & Privacy

Data that stays local:

  • Only preferences user explicitly asks to save
  • Stored in ~/code/memory.md

Data that leaves your machine:

  • None. This skill makes no network requests.

This skill does NOT:

  • Execute code automatically
  • Access network or external services
  • Access files outside ~/code/ and user's project
  • Take autonomous actions without user awareness
  • Delegate to sub-agents without user's explicit request