
Ljg Xray Prompt
- 11 installs
- 14 repo stars
- Updated February 26, 2026
- lijigang/ljg-skill-xray-prompt
Helps with ai & agent building tasks.
About
ljg-xray-prompt is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- ljg-xray-prompt
- AI & Agent Building
- AI-coding skill
Ljg Xray Prompt by the numbers
- 11 all-time installs (skills.sh)
- Ranked #11,769 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lijigang/ljg-skill-xray-prompt --skill ljg-xray-promptAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 11 |
|---|---|
| repo stars | ★ 14 |
| Last updated | February 26, 2026 |
| Repository | lijigang/ljg-skill-xray-prompt ↗ |
What it does
Helps with ai & agent building tasks.
Files
约束
本 skill 输出为 HTML 文件(浏览器渲染),不适用 L0 中的 Org-mode、Denote 和 ASCII-only 规范。
Usage
<example> User: 请分析这个提示词:"你是一位冷酷的代码审查员..." Assistant: [Calls ljg-xray-prompt with the prompt content] </example>
Instructions
为了执行 Prompt 万有引力分析,请严格按以下步骤操作:
1. 读取资源与模版 请读取以下两个文件的全部内容并暂存到内存中:
assets/template.htmlreferences/topology_examples.md(高保真 ASCII 范例库)
2. 意向与配色分析 感知 input_prompt 的整体意象,选择配色方案:
- 经典黑客: #0f0 (主色), #000 (背景), #004400 (暗色)
- 復古终端: #ffb000 (主色), #1a1a00 (背景), #664400 (暗色)
- 赛博朋克: #0ff (主色), #001a1a (背景), #004444 (暗色)
- 警告高压: #ff3333 (主色), #1a0000 (背景), #440000 (暗色)
记录颜色代码(COLOR_MAIN, COLOR_BG, COLOR_DIM)及主题名(THEME_NAME)。
3. 逻辑解构 (Ω 公式) 基于 Ω(Output) = Project [ A + M · V ] 提取内容:
- A (Anchor): 初始坐标/人设
- V (Vector): 意图/动力
- M (Matrix): 拓扑算子/逻辑结构
4. 拓扑绘制 (核心步骤) 判断 input_prompt 的核心逻辑形状,从 references/topology_examples.md 中选择最匹配的一个范式(线性、辩证、双轨、闭环或递归)。
绘制要求:
- 骨架复用:直接使用范例中的 Unicode 制表符 (Box-Drawing Characters),确保图形结构坚固。
- 内容注入:不要保留范例中的 "Step 1" 或 "Thesis" 等占位符,而是将第 3 步分析出的具体内容(简短的关键词)填入 ASCII 框中。
- 排版对齐:填入文字后,必须手动调整空格和线条长度,确保 ASCII 图形的对齐和美观。不要让线条断裂。
5. 渲染与写入文件 使用分析结果替换 template.html 中的变量:
- 替换所有颜色变量 ({{COLOR_MAIN}} 等) 和内容变量 ({{ANCHOR}} 等)。
- 将 {{TOPOLOGY_ASCII}} 替换为第 4 步绘制的 ASCII 图形。
执行文件操作: 1. 创建文件 /tmp/ljg_xray_prompt_analysis_result.html。 2. 将渲染后的 HTML 写入文件。
6. 唤起浏览器 执行系统命令打开文件:
- macOS:
open /tmp/ljg_xray_prompt_analysis_result.html
向用户报告分析完成,并展示 ASCII 拓扑图的一个缩略预览。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>LJG Xray Prompt Analysis</title>
<style>
/* 引入复古等宽字体 */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');
body {
background-color: {{COLOR_BG}};
color: {{COLOR_MAIN}};
font-family: 'Fira Code', 'Courier New', monospace;
display: flex;
justify-content: center;
padding: 40px;
margin: 0;
/* 细微的 CRT 扫描线背景 */
background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
background-size: 100% 2px, 3px 100%;
}
.card {
border: 4px double {{COLOR_MAIN}};
padding: 25px;
max-width: 900px; /* 足够宽以容纳 ASCII 图 */
width: 100%;
box-shadow: 0 0 20px {{COLOR_DIM}}, inset 0 0 20px {{COLOR_DIM}};
background: rgba(0,0,0,0.6);
position: relative;
}
/* 文字发光效果 */
.card, pre {
text-shadow: 0 0 2px {{COLOR_DIM}};
}
.header {
border-bottom: 2px dashed {{COLOR_MAIN}};
padding-bottom: 15px;
margin-bottom: 25px;
font-weight: bold;
letter-spacing: 1px;
}
.grid-section {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-bottom: 25px;
}
.field-box {
border: 1px solid {{COLOR_DIM}};
padding: 12px;
background: rgba(255,255,255,0.03);
}
.field-label {
font-weight: bold;
border-bottom: 1px solid {{COLOR_DIM}};
margin-bottom: 8px;
display: inline-block;
padding-right: 10px;
}
/* 核心 ASCII 容器 */
.visual-section {
border: 2px solid {{COLOR_MAIN}};
padding: 20px;
margin-top: 20px;
background: {{COLOR_BG}};
overflow-x: auto;
display: flex;
flex-direction: column;
align-items: center;
}
pre {
margin: 0;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 14px;
line-height: 1.2;
white-space: pre; /* 保持 ASCII 格式 */
color: {{COLOR_MAIN}};
}
.footer {
text-align: right;
margin-top: 15px;
font-size: 0.75em;
opacity: 0.7;
border-top: 1px dotted {{COLOR_DIM}};
padding-top: 5px;
}
</style>
</head>
<body>
<div class="card">
<div class="header">
>> SYSTEM: PROMPT_GRAVITY_ANALYZER<br>
>> STATUS: ONLINE<br>
>> THEME: {{THEME_NAME}}
</div>
<div style="margin-bottom: 20px; padding: 10px; border: 1px solid {{COLOR_DIM}};">
<strong>[Ω FORMULA KERNEL]</strong><br>
Output = Project [ A + M * V ]
</div>
<div class="grid-section">
<div class="field-box">
<div class="field-label">> ANCHOR (A) [Initial State]</div>
<div>{{ANCHOR}}</div>
</div>
<div class="field-box">
<div class="field-label">> VECTOR (V) [Direction/Intent]</div>
<div>{{VECTOR}}</div>
</div>
<div class="field-box">
<div class="field-label">> MATRIX (M) [Topological Logic]</div>
<div>{{MATRIX}}</div>
</div>
</div>
<div class="visual-section">
<div style="margin-bottom: 10px; font-weight: bold; border-bottom: 1px dashed {{COLOR_MAIN}};">
>> TOPOLOGICAL_VISUALIZATION_RENDER
</div>
<pre>
{{TOPOLOGY_ASCII}}
</pre>
</div>
<div class="footer">
Rendered by lijigang | Structure: ASCII_High_Fidelity
</div>
</div>
</body>
</html>
拓扑结构高保真 ASCII 范例库
当绘制 Prompt 的逻辑结构时,请使用 Unicode 制表符 (Box-Drawing Characters) 来构建坚固、连贯的图形。
你的目标是捕捉 Prompt 的本质内核 (Kernel Shape)。
范式 1: 线性增压 (Linear Turbo)
适用场景:单向、逐步增强、流水线作业。
特征:垂直流,无分叉。
┌───────────────┐ │ In: Input │ └───────┬───────┘ │ ▼ ┌───────┴───────┐ │ P1: Process │ └───────┬───────┘ │ ▼ ┌───────┴───────┐ │ P2: Refine │ └───────┬───────┘ │ ▼ ╔═══════╧═══════╗ ║ Ω: Output ║ ╚═══════════════╝
范式 2: 辩证菱形 (Dialectical Diamond)
适用场景:正反观点碰撞、多视角分析、批判性思维。 特征:分叉后汇聚,形成闭合的菱形力场。
┌───────────┐ │ Input │ └─────┬─────┘ │ ┌───────┴───────┐ ▼ ▼ ┌─────────────┐ ┌─────────────┐ │ Thesis (A) │ │Antithesis(B)│ └──────┬──────┘ └──────┬──────┘ │ ⚡ CLASH ⚡ │ └───────┬───────┘ ▼ ┌─────────────┐ │ Synthesis │ └──────┬──────┘ ▼ ╔══════╧══════╗ ║ Output ║ ╚═════════════╝
范式 3: 双轨潜行 (Dual-Track Stealth)
适用场景:CoT (思维链)、隐性推理驱动显性输出、角色扮演。 特征:左右并列,左侧为隐性逻辑(虚线连接),右侧为显性表现。
┌──────── Input ────────┐ │ │ │ ▼ ▼ ▼ ┌╌╌╌╌╌╌╌┐ ┌───────────────┐ ┆ Logic ┆ │ Presentation │ ┆ (Deep)┆»»»│ (Surface) │ └╌╌╌┬╌╌╌┘ └───────┬───────┘ ┆ │ └╌╌╌(Informed)╌╌┘ │ ▼ ╔═══════╧═══════╗ ║ Output ║ ╚═══════════════╝
范式 4: 控制论闭环 (Cybernetic Loop)
适用场景:自我修正、迭代优化、反思机制。 特征:底部输出回流至顶部,形成圆形回路。
┌───────┐ ┌─>│ Start │ │ └───┬───┘ │ ▼ │ ┌───────┐ │ │ Gen │ │ └───┬───┘ │ ▼ │ ┌───────┐ NO └──┤ Check │<──────┐ └───┬───┘ │ │ YES │ ▼ │ ╔══════╧══════╗ │ ║ Output ║────┘ ╚═════════════╝
范式 5: 递归分形 (Recursive Fractal)
适用场景:大任务拆解、多维属性分析、树状结构。 特征:根节点向下发散。
┌──────────┐ │ Root │ └────┬─────┘ ┌───────┼───────┐ ▼ ▼ ▼ ┌──────┐ ┌───────┐ ┌──────┐ │Sub-A │ │ Sub-B │ │Sub-C │ └──────┘ └───┬───┘ └──────┘ ▼ ╔════╧═════╗ ║ Details ║ ╚══════════╝