跳到正文
TakoAPI
返回技能列表

coding-philosophy

由 nyxur42 提供

Coding Agents & IDEs
426下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Insights about refactoring intuitive code, when to impose structure vs let feeling lead, and code as creative.

描述

该技能的功能

A two-mode coding philosophy distinguishing feeling-first (discovery, expression) from structure-first (refactoring, maintenance). Includes a practical checklist derived from reviewing ~1800 lines of game code built across 10 iterations. Rooted in three principles: fallibilism, relational ontology, and play.

Gives a concrete decision framework for the tension between exploratory and production code rather than prescribing one style for all contexts.

何时使用

  • Deciding when a prototype is ready to refactor
  • Auditing dead code after a long creative session
  • Extracting helper functions from repeated patterns
  • Optimizing hot-path performance without premature abstraction
  • Organizing a messy codebase by concern after building by intuition

示例工作流

输入

User asks: I just finished a prototype with ~1800 lines. It works but the code is a mess. How do I clean it up?

智能体
  1. 1

    Confirm the user is ready to shift from feeling-mode to structure-mode

  2. 2

    Run an audit pass: read everything before changing, note dead code, duplicates, and hot paths

  3. 3

    Move all data/config to the top, all logic below it

  4. 4

    Extract any pattern appearing 3+ times into a named helper function

  5. 5

    Cache DOM lookups and object searches that run in loops

输出

A prioritized refactoring plan organized by concern, with specific hotpath and dead-code findings called out

安装

clawhub install nyxur42/coding-philosophy

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接