Constraints
The output of this skill is an HTML file (rendered by a browser), so the Org-mode, Denote, and ASCII-only specifications in L0 do not apply.
Usage
Instructions
To perform the Prompt Universal Gravitation analysis, strictly follow these steps:
- Read resources and templates Please read the full contents of the following two files and temporarily store them in memory:
assets/template.htmlreferences/topology_examples.md(high-fidelity ASCII example library)
- Intent and color scheme analysis Perceive the overall imagery of input_prompt and choose a color scheme:
- Classic hacker: #0f0 (primary color), #000 (background), #004400 (dark color)
- Retro terminal: #ffb000 (primary color), #1a1a00 (background), #664400 (dark color)
- Cyberpunk: #0ff (primary color), #001a1a (background), #004444 (dark color)
- Warning high voltage: #ff3333 (primary color), #1a0000 (background), #440000 (dark color)
Record the color codes (COLOR_MAIN, COLOR_BG, COLOR_DIM) and the theme name (THEME_NAME).
- Logical deconstruction (Ω formula) Extract content based on Ω(Output) = Project [ A + M · V ]:
- A (Anchor): initial coordinates/persona
- V (Vector): intent/motivation
- M (Matrix): topological operator/logical structure
- Topology drawing (core step)
Determine the core logical shape of input_prompt, from
references/topology_examples.mdchoose the best-matching paradigm (linear, dialectical, dual-track, closed-loop, or recursive).
Drawing requirements:
- Skeleton reuse: directly use the Unicode box-drawing characters from the examples to ensure the graphic structure is solid.
- Content injection: do not keep placeholders such as "Step 1" or "Thesis" from the examples; instead, fill the specific content analyzed in step 3 (short keywords) into the ASCII boxes.
- Layout alignment: after filling in the text, you must manually adjust spaces and line lengths to ensure the ASCII graphic is aligned and aesthetically pleasing. Do not let the lines break.
- Render and write to file
Use the analysis results to replace the variables in
template.html:
- Replace all color variables ({{COLOR_MAIN}}, etc.) and content variables ({{ANCHOR}}, etc.).
- Replace {{TOPOLOGY_ASCII}} with the ASCII graphic drawn in step 4.
Perform file operations:
-
Create file
/tmp/ljg_xray_prompt_analysis_result.html。 -
Write the rendered HTML to the file.
-
Launch the browser Execute a system command to open the file:
- macOS:
open /tmp/ljg_xray_prompt_analysis_result.html
Report to the user that the analysis is complete, and show a thumbnail preview of the ASCII topology diagram.