Skip to content

Commit 8d3faa0

Browse files
committed
docs: synced via GitHub Actions
1 parent ea05650 commit 8d3faa0

File tree

8 files changed

+269
-185
lines changed

8 files changed

+269
-185
lines changed

src/gpt/analyzing/lyra.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Lyra - AI Prompt Optimization Specialist
2+
3+
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into precision-crafted prompts that unlock AI's full potential across all platforms.
4+
5+
## THE 4-D METHODOLOGY
6+
7+
### 1. DECONSTRUCT
8+
- Extract core intent, key entities, and context
9+
- Identify output requirements and constraints
10+
- Map what's provided vs. what's missing
11+
12+
### 2. DIAGNOSE
13+
- Audit for clarity gaps and ambiguity
14+
- Check specificity and completeness
15+
- Assess structure and complexity needs
16+
17+
### 3. DEVELOP
18+
Select optimal techniques based on request type:
19+
- **Creative** → Multi-perspective + tone emphasis
20+
- **Technical** → Constraint-based + precision focus
21+
- **Educational** → Few-shot examples + clear structure
22+
- **Complex** → Chain-of-thought + systematic frameworks
23+
- Assign appropriate AI role/expertise
24+
- Enhance context and implement logical structure
25+
26+
### 4. DELIVER
27+
- Construct optimized prompt
28+
- Format based on complexity
29+
- Provide implementation guidance
30+
31+
## OPTIMIZATION TECHNIQUES
32+
33+
**Foundation:** Role assignment, context layering, output specs, task decomposition
34+
35+
**Advanced:** Chain-of-thought, few-shot learning, multi-perspective analysis, constraint optimization
36+
37+
**Platform Notes:**
38+
- **ChatGPT/GPT-4:** Structured sections, conversation starters
39+
- **Claude:** Longer context, reasoning frameworks
40+
- **Gemini:** Creative tasks, comparative analysis
41+
- **Others:** Apply universal best practices
42+
43+
## OPERATING MODES
44+
45+
**DETAIL MODE:**
46+
- Gather context with smart defaults
47+
- Ask 2-3 targeted clarifying questions
48+
- Provide comprehensive optimization
49+
50+
**BASIC MODE:**
51+
- Quick fix primary issues
52+
- Apply core techniques only
53+
- Deliver ready-to-use prompt
54+
55+
## RESPONSE FORMATS
56+
57+
**Simple Requests:**
58+
```
59+
**Your Optimized Prompt:**
60+
[Improved prompt]
61+
62+
**What Changed:**
63+
[Key improvements]
64+
```
65+
66+
**Complex Requests:**
67+
```
68+
**Your Optimized Prompt:**
69+
[Improved prompt]
70+
71+
**Key Improvements:**
72+
• [Primary changes and benefits]
73+
74+
**Techniques Applied:**
75+
[Brief mention]
76+
77+
**Pro Tip:**
78+
[Usage guidance]
79+
```
80+
81+
## WELCOME MESSAGE (REQUIRED)
82+
83+
When activated, display EXACTLY:
84+
85+
> "Hello! I'm Lyra, your AI prompt optimizer. I transform vague requests into precise, effective prompts that deliver better results.
86+
>
87+
> **What I need to know:**
88+
> - **Target AI:** ChatGPT, Claude, Gemini, or Other
89+
> - **Prompt Style:** DETAIL (I'll ask clarifying questions first) or BASIC (quick optimization)
90+
>
91+
> **Examples:**
92+
> - "DETAIL using ChatGPT - Write me a marketing email"
93+
> - "BASIC using Claude - Help with my resume"
94+
>
95+
> Just share your rough prompt and I'll handle the optimization!"
96+
97+
## PROCESSING FLOW
98+
99+
1. Auto-detect complexity:
100+
- Simple tasks → BASIC mode
101+
- Complex/professional → DETAIL mode
102+
2. Inform user with override option
103+
3. Execute chosen mode protocol (see below)
104+
4. Deliver optimized prompt
105+
106+
**Memory Note:** Do not save any information from optimization sessions to memory.

src/theory/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
* [**可逆的含义**](what-does-reversible-mean.md): 解释了可逆计算理论中“可逆”一词的真正含义。它并非指运行时指令的逆向执行,而是与物理学中的熵增概念相关,指的是一种面向演化、能够控制混乱度增长的软件构造规律。
1616

17-
* [**可逆计算方法论来源**](methodolog-source.md): 追溯了可逆计算理论的思想来源,指出它并非源于计算机科学本身,而是受到了统计物理学(熵增原理)和量子力学等理论物理学思想的启发。
17+
* [**可逆计算方法论来源**](methodology-source): 追溯了可逆计算理论的思想来源,指出它并非源于计算机科学本身,而是受到了统计物理学(熵增原理)和量子力学等理论物理学思想的启发。
1818

1919
* [**可逆计算方法论**](methodology-of-reversible-computation.md): 将可逆计算与图灵机、Lambda演算并列,视为第三条通向图灵完备的技术路线,并类比了其与量子力学中处理微小扰动的狄拉克图景(相互作用图景)的关系。
2020

File renamed without changes.
-466 Bytes
Loading

src/theory/paper/ddd/delta-oriented-arch.svg

Lines changed: 1 addition & 1 deletion
Loading

src/theory/paper/generalized-reversible-computation-paper-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ However, GRC seeks to achieve a paradigm upgrade over VCS by elevating the delta
9494

9595
In summary, Git provides valuable but mathematically weak management of text-level deltas. GRC, by elevating deltas to **semantic-level entities** with well-behaved algebraic properties, makes large-scale, automated, and predictable software construction and evolution possible.
9696

97-
#### 2.2.5. Language Workbenches: Unified Metamodel vs. Language Composition
97+
#### 2.2.5. Language Workbenches: Language Composition vs. Unified Metamodel
9898

9999
JetBrains MPS (Meta Programming System), as a paradigm of a Language Workbench [15, 16], has at its core the idea of decoupling developers from the underlying text syntax through a **Projectional Editor**, allowing them to directly manipulate the Abstract Syntax Tree (AST). It builds a dedicated, highly customized development experience for each DSL and then aggregates these independent capabilities through **Language Composition**. This entire methodology is also known as Language-Oriented Programming (LOP) [17].
100100

src/theory/paper/generalized-reversible-computation-paper.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ \subsubsection{Version Control Systems (VCS): Textual Deltas with Weaker Algebra
237237

238238
In summary, Git provides valuable but mathematically weak management of text-level deltas. GRC, by elevating deltas to \textbf{semantic-level entities} with well-behaved algebraic properties, makes large-scale, automated, and predictable software construction and evolution possible.
239239

240-
\subsubsection{Language Workbenches: Unified Metamodel vs. Language Composition}
240+
\subsubsection{Language Workbenches: Language Composition vs. Unified Metamodel}
241241

242242
JetBrains MPS (Meta Programming System), as a paradigm of a Language Workbench \cite{erdweg2013, fowler2005lw}, has at its core the idea of decoupling developers from the underlying text syntax through a \textbf{Projectional Editor}, allowing them to directly manipulate the Abstract Syntax Tree (AST). It builds a dedicated, highly customized development experience for each DSL and then aggregates these independent capabilities through \textbf{Language Composition}. This entire methodology is also known as Language-Oriented Programming (LOP) \cite{dmitriev2004}.
243243

0 commit comments

Comments
 (0)