# How Zhangxuefeng-skill Implements Class Realism: Architecture and Application Logic

> Discover how Zhangxuefeng-skill implements Class Realism. Learn its architecture and application logic for filtering career recommendations based on economic background.

- Repository: [花叔/zhangxuefeng-skill](https://github.com/alchaincyf/zhangxuefeng-skill)
- Tags: architecture
- Published: 2026-06-12

---

**Zhangxuefeng-skill embeds Class Realism (阶层现实主义) as a mandatory filtering layer that validates career recommendations against family economic background, enforcing the principle that "家里没矿别谈理想" (if your family has no capital, don't pursue idealistic careers) before applying any other mental models.**

The open-source project `alchaincyf/zhangxuefeng-skill` codifies the educational philosophy of Zhang Xuefeng into a structured AI skill framework. At its core lies **Class Realism**, one of five headline mental models that transforms generic career advice into class-aware guidance by interrogating the user's socioeconomic context before generating recommendations.

## Core Definition and Philosophy in SKILL.md

### The One-Sentence Creed

The complete definition of Class Realism resides in [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md) under the model specifications section. The framework operates on a single, non-negotiable creed: `家里没矿别谈理想，先谋生再谋爱，先站稳再登高`. This phrase serves as the primary filter—if the user's family lacks "矿" (financial or social capital), idealistic career paths are systematically blocked or redirected toward practical, income-generating alternatives.

### Evidence Base from Real-World Sources

The model's authority derives from authenticated quotations documented in [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md) under the evidence section and supported by research files in [`references/research/01-writings.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/references/research/01-writings.md). These include phrases such as "先谋生，再谋爱" and "你的工资，永远和你的不可替代性成正比", grounding the AI's logic in real-world statements Zhang Xuefeng has made publicly.

## Implementation Architecture

### The Four-Step Decision Pipeline

According to the architecture demonstrated in [`examples/demo-conversation.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/examples/demo-conversation.md), Class Realism implements a strict execution pipeline:

1. **Trigger Activation** - Any query involving career or education selection automatically invokes the skill.
2. **Background Probe** - The system mandates asking "你家是做什么的？" (What does your family do?) to assess economic standing.
3. **Class-Based Filtering** - If the family lacks capital ("没矿"), high-risk suggestions (e.g., finance, arts) are blocked with specific interdictions like "金融千万别碰" (absolutely don't touch finance).
4. **Compositional Output** - Permissible recommendations are then constructed using supplementary models.

### Integration with Complementary Models

Class Realism functions as the **gatekeeper layer** that determines whether other models activate. As documented in the "运用的心智模型" sections of [`examples/demo-conversation.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/examples/demo-conversation.md), the skill combines Class Realism with:

- **社会筛子论** (Social Sieve Theory)
- **就业倒推法** (Employment Backward Planning)
- **选择>努力** (Choice over Effort)
- **中位数原则** (Median Principle)

The skill first applies Class Realism to determine *if* a recommendation is permissible, then layers the other models to determine *what* specific advice to offer.

## Practical Application Examples

The repository demonstrates the model's behavior through structured dialogue flows. When invoked, the skill produces responses that explicitly cite the Class Realism framework.

### Arts Career Blocking

For a user querying about studying art without family resources:

```json
{
  "prompt": "我想学艺术，家里没有钱，怎么办？",
  "skill": "zhangxuefeng-perspective",
  "steps": [
    "activate_role",
    "ask_family_background",
    "apply_class_realism",
    "apply_other_models"
  ]
}

```

Typical response enforcing Class Realism:

```

先谋生，再谋爱；先站稳，再登高。你家没矿，艺术成本高，先选一门能养活自己的专业（比如计算机、师范），等收入稳定再去练艺术。  
— 采用模型：阶层现实主义 + 选择>努力 + 中位数原则

```

### Finance Sector Gating

For finance inquiries from non-finance families:

```json
{
  "prompt": "孩子想学金融，家庭没有金融背景，这样可行吗？",
  "skill": "zhangxuefeng-perspective"
}

```

Skill reply demonstrating the filter:

```

先问：你家里有金融从业者吗？没有？那金融千万别碰。金融行业大多数岗位是"站在银行网点卖理财"，普通家庭难以突破。建议转向计算机或电气工程，这些专业的中位数岗位更稳。  
— 采用模型：阶层现实主义 + 就业倒推法 + 社会筛子论

```

## Boundary Conditions and Limitations

The [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md) file explicitly documents Class Realism's **limitations** to prevent fatalistic over-application. Without tempering by other models, the framework risks devolving into pure economic determinism. The architecture acknowledges that strict adherence to class-based blocking requires balancing with other mental models to avoid completely eliminating viable pathways for class mobility that strategic choices might open.

## Summary

- **Zhangxuefeng-skill** implements Class Realism as a **mandatory background check** before generating career advice.
- The core logic resides in [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md), utilizing the creed "家里没矿别谈理想" to block high-risk recommendations for families without capital.
- The model operates through a **four-step pipeline**: trigger, background probe, filter, and compose.
- **Integration points** connect Class Realism with Social Sieve Theory and Employment Backward Planning to create layered, class-aware recommendations.
- **Limitations** are explicitly documented to prevent the model from becoming overly fatalistic.

## Frequently Asked Questions

### What triggers the Class Realism model in Zhangxuefeng-skill?

Any user query related to career selection, education major choices, or employment strategy automatically activates the skill's Class Realism filter. The system then mandates the "你家是做什么的？" background probe before proceeding with recommendations, as demonstrated in [`examples/demo-conversation.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/examples/demo-conversation.md).

### Where is the Class Realism logic defined in the repository?

The complete definition, evidence base, and application rules reside in [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md) under the Class Realism (阶层现实主义) section. Concrete implementation examples appear in [`examples/demo-conversation.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/examples/demo-conversation.md), while supporting research material exists in [`references/research/01-writings.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/references/research/01-writings.md).

### How does Class Realism interact with other mental models in the skill?

Class Realism functions as the **primary gatekeeper** that determines whether a recommendation is permissible based on family economic status. Only after passing this filter do secondary models like "Employment Backward Planning" and "Median Principle" activate to flesh out the specific advice, creating a layered decision architecture.

### What are the limitations of the Class Realism model?

According to the [`SKILL.md`](https://github.com/alchaincyf/zhangxuefeng-skill/blob/main/SKILL.md) documentation, the model can devolve into fatalism if not balanced by other frameworks. The skill explicitly acknowledges that strict economic determinism requires tempering to avoid eliminating viable pathways for class mobility that strategic choices might open.