先用伪代码梳理方案与迭代思路,再高效转成可执行代码。
该技能材料显示其本质是一个纯提示/方法论文档,用于指导先写伪代码再编码;未见需要密钥、联网、执行代码或访问数据的说明。基于其开源且提示词型特征,整体风险较低,但仓库社区采用度与维护状态证据较弱,供应链可信度仍需基本核验。
材料明确标注无需密钥或环境变量,README 也未要求登录、API token 或其他敏感凭证,未见凭证泄露或滥用路径。
材料注明无远程端点,README 内容也仅为开发流程建议,未描述任何联网行为、数据上传或向第三方发送用户内容。
系统检查项为 prompt-only,文档内容属于编码前设计方法,不包含本机起进程、执行脚本或调用系统能力的说明。
未声明读取或写入本地文件、项目数据、数据库或其他资源;作为纯技能说明,其数据接触面仅限用户主动提供的上下文。
来源为 GitHub 开源仓库,具备可审计性,这显著降低风险;但许可证未声明、0 star、维护状态未知,社区验证与持续维护证据较弱,建议在纳入生产工作流前做基本仓库核验。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "Designing Before Coding" 技能: 1. 下载 https://raw.githubusercontent.com/obra/clank/main/skills/coding/designing-before-coding/SKILL.md 2. 保存为 ~/.claude/skills/designing-before-coding/SKILL.md 3. 装好后重载技能,告诉我可以用了
请先不要直接写代码。先用伪代码设计一个支持去重、过滤空值、按时间降序排序的日志处理流程,比较两种实现思路的优缺点,再把你推荐的方案翻译成 Python 代码。
先给出结构清晰的伪代码与方案对比,再输出推荐方案的 Python 实现。
我有一个难维护的旧函数。请先根据以下需求把处理流程拆成伪代码模块,指出可复用部分、边界情况和潜在 bug,再给出重构后的 JavaScript 代码。需求如下:用户输入校验、错误提示、本地缓存、远程提交、失败重试。
输出模块化伪代码、风险分析与更易维护的重构代码。
请先用伪代码分析这道算法题,至少给出暴力法和优化法两种思路,说明时间与空间复杂度,再实现最优解并补充测试用例。题目:返回数组中和为目标值的两个下标。
包含多种解法的伪代码分析、复杂度说明、最优实现与测试样例。
Write the design in pseudocode BEFORE writing implementation code. Iterate through multiple approaches in pseudocode, pick the best, THEN translate to code.
Core principle: Once you start coding, you get emotionally involved with your code and it becomes harder to throw away a bad design. Design is cheap to change; code is expensive.
Violating the letter of the rules is violating the spirit of the rules.
Use for ANY programming task beyond trivial one-liners:
Red flags that you need this:
Don't skip when:
Before any design work:
If unclear, STOP. Get clarification before proceeding.
Name it BEFORE designing internals.
If you struggle to create a good name = WARNING SIGN.
Good name = clear, unambiguous, describes what routine does.
Before writing pseudocode:
Don't reinvent the wheel:
Use your code editor (it will become comments):
# Write general statement of purpose first
This routine outputs an error message based on an error code
supplied by the calling routine. The way it outputs the message
depends on the current processing state, which it retrieves
on its own. It returns a value indicating success or failure.
# Then write high-level pseudocode
set the default status to "fail"
look up the message based on the error code
if the error code is valid
if doing interactive processing, display the error message
interactively and declare success
if doing command line processing, log the error message to the
command line and declare success
if the error code isn't valid, notify the user that an internal
error has been detected
return status information
Pseudocode characteristics:
Critical step - don't skip:
…
帮助用户检索过往 Claude Code 对话,快速找回事实、决策与上下文线索。
帮助用户用接口封装实现细节,从业务层面设计与理解系统
帮助开发者保持类接口抽象一致,避免混杂序列化、持久化等无关职责。
为工程师生成分步实施计划,帮助在陌生代码库中快速落地任务。
用测试驱动方式编写流程文档,先验证再成稿,提升技能说明的可靠性。
帮助你在实施前先比较2到3种方案,选出更优设计与执行路径。
通过结构化追问与方案比较,把模糊想法梳理成可执行设计。
在创意与实现前梳理用户意图、需求与方案方向,降低返工风险。
根据需求先拆解多步骤任务,生成清晰可执行的实施计划
在设计完成后,为缺乏上下文的工程师生成可执行的详细实施计划。
通过测试驱动开发流程,先写测试再实现功能或修复缺陷。
通过先写失败测试再实现代码,帮助稳定完成功能开发与缺陷修复。