Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

chrysopoeiachrysopoeia 搜索

Agent Skill

chrysopoeia 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

12

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chrysopoeia(chrysopoeia 搜索)
来源仓库:https://github.com/pjt222/development-guides
仓库路径:skills/chrysopoeia
安装命令:
npx skills add https://github.com/pjt222/development-guides --skill chrysopoeia
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pjt222/development-guides --skill chrysopoeia

简介

系统性提炼代码中最有价值部分,识别黄金与铅质模块。

  • 优化性能、精简 API 并移除冗余代码提升质量。
  • 适用于重构、开源准备与启动加速场景。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 不改变功能正确性,专注结构优化与资源效率。
  • chrysopoeia 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Chrysopoeia

Systematically extract maximum value from existing code — identify what's golden (high-value, well-designed), what's lead (resource-heavy, poorly optimized), and what's dross (dead weight). Then amplify the gold, transmute the lead, and remove the dross.

When to Use

  • Optimizing a working but sluggish codebase for performance
  • Refining an API surface that has accumulated cruft over iterations
  • Reducing bundle size, memory footprint, or startup time
  • Preparing code for open-source release (extracting the valuable core)
  • When code works correctly but doesn't shine — it needs polish, not rewrite

Inputs

  • Required: Codebase or module to optimize (file paths)
  • Required: Value metric (performance, API clarity, bundle size, readability)
  • Optional: Profiling data or benchmarks showing current performance
  • Optional: Budget or target (e.g., "reduce bundle by 40%", "sub-100ms response")
  • Optional: Constraints (can't change public API, must maintain backward compat)

Procedure

Step 1: Assay — Classify the Material

Systematically classify every element by its value contribution.

  1. Define the value metric from Inputs (performance, clarity, size, etc.)
  2. Inventory the codebase elements (functions, modules, exports, dependencies)
  3. Classify each element:
Value Classification:
+--------+---------------------------------------------------------+
| Gold   | High value, well-designed. Amplify and protect.         |
| Silver | Good value, minor imperfections. Polish.                |
| Lead   | Functional but heavy — poor performance, complex API.   |
|        | Transmute into something lighter.                       |
| Dross  | Dead code, unused exports, vestigial features.          |
|        | Remove entirely.                                        |
+--------+---------------------------------------------------------+
  1. For performance optimization, profile first:

- Identify hot paths (where time is spent) - Identify cold paths (rarely executed code that may be dross) - Measure memory allocation patterns

  1. Produce the Assay Report: element-by-element classification with evidence

Expected: Every significant element classified with evidence. Gold elements are identified for protection during optimization. Lead elements are prioritized by impact.

On failure: If profiling tools aren't available, use static analysis: function complexity (cyclomatic), dependency count, and code size as proxies. If the codebase is too large, focus on the critical path first.

Step 2: Refine — Amplify the Gold

Protect and enhance the highest-value elements.

  1. For each Gold element:

- Ensure it has comprehensive tests (these are your most valuable assets) - Document its interface clearly if not already done - Consider whether it could be extracted as a reusable module

  1. For each Silver element:

- Apply targeted improvements (better naming, clearer types, minor optimizations) - Bring test coverage to Gold-level - Resolve minor code smells without restructuring

  1. Do not modify Gold/Silver behavior — only improve their polish and protection

Expected: Gold and Silver elements are better tested, documented, and protected. No behavioral changes, only quality improvements.

On failure: If a "Gold" element reveals hidden problems during closer inspection, reclassify it. Better to be honest about value than to protect flawed code.

Step 3: Transmute — Convert Lead to Gold

Transform heavy, inefficient elements into optimized equivalents.

  1. Prioritize Lead elements by impact (highest resource consumption first)
  2. For each Lead element, choose a transmutation strategy:

- Algorithm optimization: Replace O(n^2) with O(n log n), eliminate redundant computation - Caching/memoization: Store expensive results that are requested repeatedly - Lazy evaluation: Defer computation until results are actually needed - Batch processing: Combine many small operations into fewer large ones - Structural simplification: Reduce cyclomatic complexity, flatten deep nesting

  1. Apply the strategy and measure the improvement:

- Before/after benchmarks for performance changes - Before/after line counts for complexity changes - Before/after dependency counts for coupling changes

  1. Verify behavioral equivalence after each transmutation

Expected: Measurable improvement on the target value metric. Each transmuted element performs better than its Lead predecessor while maintaining identical behavior.

On failure: If a Lead element resists optimization within its current interface, consider whether the interface itself is the problem. Sometimes the transmutation requires changing how the element is called, not just how it's implemented.

Step 4: Purge — Remove the Dross

Eliminate dead weight systematically.

  1. For each Dross element, verify it's truly unused:

- Search for all references (grep, IDE find-usages) - Check for dynamic references (string-based dispatch, reflection) - Check for external consumers (if the code is a library)

  1. Remove confirmed dross:

- Delete dead code, unused exports, vestigial features - Remove unused dependencies from package manifests - Clean up configuration for removed features

  1. Verify nothing breaks after each removal (run tests)
  2. Document what was removed and why (in commit messages, not in code)

Expected: The codebase is lighter. Bundle size, dependency count, or code volume measurably reduced. All tests still pass.

On failure: If removing an element breaks something, it wasn't dross — reclassify it. If dynamic references make it hard to verify usage, add temporary logging before deletion to confirm no runtime access.

Step 5: Verify — Weigh the Gold

Measure the overall improvement.

  1. Run the same benchmarks/metrics used in Step 1
  2. Compare before/after on the target value metric
  3. Document the chrysopoeia results:

- Elements refined (Gold/Silver improvements) - Elements transmuted (Lead → Gold conversions with measurements) - Elements purged (Dross removed with size/count impact) - Overall metric improvement (e.g., "47% faster", "32% smaller bundle")

Expected: Measurable, documented improvement on the target value metric. The codebase is demonstrably more valuable than before.

On failure: If overall improvement is marginal, the original code may have been better than assumed. Document what was learned — knowing that code is already near-optimal is itself valuable.

Validation Checklist

  • Assay report classifies all significant elements with evidence
  • Gold elements have comprehensive tests and documentation
  • Lead transmutations show measurable before/after improvement
  • Dross removal verified with reference checks before deletion
  • All tests pass after each stage
  • Overall improvement measured and documented
  • No behavioral regressions introduced
  • Constraints from Inputs are satisfied

Common Pitfalls

  • Premature optimization: Optimizing without profiling. Always measure first, optimize the hot paths
  • Polishing dross: Spending effort improving code that should be deleted. Classify before refining
  • Breaking Gold: Optimization that degrades the best code. Gold elements should only get better, never worse
  • Unmeasured claims: "It feels faster" is not chrysopoeia. Every improvement must be quantified
  • Optimizing cold paths: Spending effort on code that runs once at startup when the bottleneck is the request loop

Related Skills

  • athanor — Full four-stage transformation when chrysopoeia reveals the code needs restructuring, not just optimization
  • transmute — Targeted conversion when a Lead element needs a paradigm shift
  • review-software-architecture — Architecture-level evaluation that complements code-level chrysopoeia
  • review-data-analysis — Data pipeline optimization parallels code optimization

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.15%
按下载量换算44

Claude

32.37%
按下载量换算43

Cursor

19.02%
按下载量换算25

Gemini CLI

9.92%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills