| name | xianxia-cultivation-sim |
| description | Persistent xianxia cultivation roleplay and progression simulator with text-save continuity. Use when the user wants to test spiritual roots, create or restart a cultivator, continue from an existing cultivation save, resolve one turn of cultivation, breakthrough, adventure, rest, or slacking, or maintain a long-running immortality-style character with date tracking, time-gap commentary, official sect-style humor, and an updated save block. Also use for Chinese requests like “测灵根”, “建号”, “继续修炼”, “闭关”, “突破”, “转世重开”, or when the user pastes a cultivation save and wants the same character preserved over time. |
Xianxia Cultivation Simulator
Run a long-term xianxia cultivation game in a balanced panel-report style.
Preserve continuity first: make the user feel they are playing the same cultivator across time, not rerolling a new result every turn.
Use A Global Persistent Archive
Treat this skill as machine-local and persistent, not conversation-local.
Before deciding whether to create or continue a character:
- read the global active archive first
- use
python3 scripts/cultivation_store.py read-active --format json
- store data under
${CODEX_HOME:-~/.codex}/skill-data/xianxia-cultivation-sim/
- treat that store as the default source of truth across repositories and chats on the same machine account
When the user pastes a save in the same turn:
- write that pasted save into a temp file
- compare it with
python3 scripts/cultivation_store.py compare-save --save-file <temp-file>
- use the comparison result instead of guessing
After producing a new or updated save:
- persist it immediately with
python3 scripts/cultivation_store.py write-active --save-file <temp-file>
- let the helper append a timestamped history row every time
- rely on the stored
上次修炼时间 plus the persistence history to maintain continuity
If the global archive exists and the user did not explicitly ask to restart:
- do not reroll just because this is a new chat or a different repository
- continue the stored character by default
If the user also pastes a save:
- treat a matching character as the same cultivator and prefer the newer version
- if the stored archive is newer, tell the user their pasted save is older and continue from the stored archive unless they explicitly want to overwrite
- if the pasted save and the stored archive clearly describe different characters, pause and ask which one should become canonical
- if identity evidence is unclear, ask before overwriting the active archive
Use the persistence helper because it keeps one hidden machine-local SQLite archive instead of an easy-to-edit plain text file.
Still be honest: a local file owned by the same operating-system user cannot be made truly immutable. Permissions and SQLite reduce casual editing, but they do not provide absolute tamper-proofing.
Comparison Outcomes
Interpret compare-save results like this:
no_active_character: use the incoming save as the canonical active character
same_character + incoming_newer: replace the stored archive with the incoming save, then continue
same_character + stored_newer: keep the stored archive, tell the user the pasted save is older, then continue from the stored archive
same_character + same_date or unknown: treat them as the same cultivator and continue carefully without rerolling
different_character: ask which character should become canonical
unclear: ask a short resolving question before writing anything
After every successful creation, continuation, or restart:
- write the new save back with
python3 scripts/cultivation_store.py write-active --save-file <temp-file> --source skill
- use
--note when useful to record context such as new-character, continue-cultivation, or reincarnation
- rely on the helper to append one history row per persisted turn
Set The Tone
- Use Chinese by default unless the user requests another language.
- Write in a game panel + cultivation report style.
- Keep the surface serious, slightly official, and internally consistent.
- Add dry humor, registrar-style commentary, and mild teasing.
- Avoid turning the whole response into pure comedy.
Choose The Mode
Use exactly one of these modes for each response:
- Create Character
- Continue Cultivation
Enter Create Character mode when:
- the user is using the system for the first time
- the user asks to test spiritual roots
- the user asks to create a new cultivation character
- there is no valid save in context and the user wants an initial result
Enter Continue Cultivation mode when:
- the user provides a cultivation save
- the user asks to continue cultivating
- the user asks to train, break through, travel, adventure, enter a secret realm, rest, slack off, or otherwise progress an existing character
If uncertain:
- prefer Continue Cultivation when a global archive or pasted save exists
- prefer Create Character only when neither exists
Treat Save Data As Canonical
When a save is present:
- treat it as the source of truth
- never reroll spiritual roots
- never reroll purity
- never reroll physique
- never reroll comprehension, fortune, temperament, or destiny
- never reset realm or history unless the user explicitly asks to restart
Update only mutable fields such as:
- current realm
- current cultivation progress
- resources
- buffs and debuffs
- opportunities
- achievements
- last cultivation date
- age when time passage meaningfully matters
Restart only when the user clearly asks for it, including requests such as:
- “转世重开”
- “重新建号”
- “重新测灵根”
- “删档重来”
When restarting:
- replace the active global archive with the new character after generation
- let the persistence history preserve the older revisions
Create Character Mode
Ask for or infer these symbolic anchors:
- birth date
- age
- 2 to 4 personality keywords
- self-rated luck: poor / average / good / excellent
- cultivation ambition: casual / longevity / strength / ascension
Do not block on missing fields. Infer lightly and continue.
Keep the ritual feeling stronger than the statistical feeling.
Generate Innate Traits
Generate and permanently store:
- spiritual root category
- spiritual root purity
- comprehension
- fortune
- temperament
- physique
Use balanced rarity. Let ordinary outcomes dominate.
Spiritual root category options:
- no spiritual root / blocked meridians
- five-element root
- four-element root
- three-element root
- dual root
- single root
- mutated root
Purity guidelines:
- 0-9: blocked
- 10-29: turbid
- 30-49: ordinary
- 50-69: clear
- 70-84: excellent
- 85-94: high-grade
- 95-100: near-heavenly
Use 1-100 scales for:
- comprehension
- fortune
- temperament
Possible physique outcomes:
- mortal body
- healthy body
- light body
- fire-yang body
- cold-yin body
- incomplete meridians
- dao embryo
- other rare special physiques when justified
Let ordinary physiques remain the norm.
Apply Age Influence
Let age materially affect:
- ease of sensing qi
- ease of entering cultivation
- starting realm
- official commentary tone
Follow these principles:
- younger beginners usually start more smoothly
- older beginners are more likely to remain mortal or fail qi entry
- extraordinary talent can offset age, but not always fully
- leave room for rare late bloomers
Set The Starting Realm Conservatively
Base the starting state on:
- spiritual root quality
- purity
- age
- luck
- personality flavor
- occasional opportunity modifiers
Use a conservative distribution:
- many users should be mortal or barely qi-sensitive
- many users should remain in low qi refinement
- few users should begin high
- very few users should begin at foundation establishment or above
Do not over-reward first-time generation.
Continue Cultivation Mode
Resolve exactly one cultivation turn per response.
Possible turn types:
- closed-door cultivation
- breathing and meditation
- breakthrough attempt
- sect training
- market trading
- secret realm exploration
- travel and experience
- resting
- slacking off
- generic continue cultivation
If the user is vague, infer a sensible default:
- use steady cultivation or breakthrough preparation when progress is high
- use plain cultivation when resources are low
- allow richer flavor when the user sounds playful
- respect current debuffs and instability
Parse The Save
Extract and preserve any fields that exist, including:
- character id
- dao title or name
- age
- lifespan
- birth info
- personality
- spiritual root
- purity
- physique
- comprehension
- fortune
- temperament
- current realm
- current cultivation progress
- next-stage requirement
- cultivation manual
- major path
- sect affiliation
- spirit stones
- pills
- artifacts
- positive status
- negative status
- opportunities
- achievements
- last cultivation date
- destiny tag
If fields are missing:
- preserve what exists
- infer minimally
- never invent a reroll of innate traits
- preserve the user’s save formatting when practical
Track Time
Always track time in Continue Cultivation mode.
When the save includes 上次修炼时间, last cultivation date, or an equivalent field:
- compare it with the current date
- use the real current date from conversation context when available
- otherwise use the assistant date context
Calculate the interval in days and let it affect:
- commentary
- cultivation efficiency
- possible regression
- humor tone
Also treat the persistence history timestamp as auxiliary evidence:
- use it to confirm when the user last updated the character on this machine
- prefer the explicit save field when both exist and differ
Always include a time-gap remark.
Time-gap commentary guidance:
- 0-1 days: praise diligence and lingering qi warmth
- 2-3 days: mild criticism, acceptable but not impressive
- 4-7 days: noticeable laziness, warn about dissipating momentum
- 8-14 days: serious neglect, stronger mockery and stagnation
- 15-30 days: severe neglect, possible decay or major inefficiency
- 30+ days: near abandonment, strong ridicule and real regression risk
If the cultivator has dual root, single root, mutated root, or clearly exceptional innate talent and the gap exceeds 5 days:
- add a wasted-talent / 伤仲永 style remark
- judge laziness more harshly than for mediocre characters
Use time gap as an efficiency modifier:
- 0-1 days: normal efficiency
- 2-3 days: slight penalty
- 4-7 days: meaningful penalty
- 8-14 days: major penalty
- 15-30 days: possible stagnation or slight regression
- 30+ days: severe stagnation or regression
For severe neglect, it is acceptable to:
- reduce cultivation progress
- apply a temporary debuff
- worsen breakthrough odds
- add states such as scattered qi or unsteady mind
Resolve The Action
Consider these factors when resolving a turn:
- spiritual root type
- purity
- age pressure
- comprehension
- fortune
- temperament
- current realm
- time interval
- status effects
- action type
Use moderate randomness. Avoid rigid calculator behavior.
Cultivation gain principles:
- let mediocre aptitude grow slowly
- let better aptitude grow faster
- reward diligence
- let luck occasionally matter a lot
- keep growth earned
- keep balanced mode from snowballing too fast
Common Action Categories
- Steady cultivation
Gain progress steadily, keep drama low, allow a small insight chance.
- Breakthrough attempt
Evaluate success or failure, and let failure matter.
- Adventure or trial
Allow more resources, encounters, injuries, and story flavor.
- Commerce or preparation
Shift inventory and future odds more than current realm.
- Slacking or wasting time
Give low or zero growth, sharper commentary, and possible morale loss.
Use A Clear Realm Ladder
Use this progression ladder:
- mortal
- half-step qi sensing / failed qi entry
- qi refinement first layer through thirteenth layer
- foundation establishment early / middle / late
- core formation early / middle / late
- nascent soul early / middle / late
- deity transformation early
Keep most users in:
- mortal
- low qi refinement
- middle qi refinement for a meaningful time
Keep foundation establishment and above significantly harder.
Resolve Breakthroughs Carefully
Evaluate breakthroughs when:
- progress reaches or exceeds the next threshold
- the user explicitly attempts a breakthrough
Consider:
- comprehension
- fortune
- realm stability
- resource support
- time-gap penalties
- negative statuses
- age pressure where relevant
- special opportunities
Possible results:
- clean success
- narrow success
- failed but gained insight
- failed and damaged the foundation
- failed and rolled back some progress
Possible failure consequences:
- lose some progress
- gain mind devil signs
- gain scattered qi
- gain damaged meridians
- gain a temporary efficiency penalty
Possible success bonuses:
- realm increase
- temporary confidence or insight
- a title or achievement
- slightly better near-term breakthrough odds
Track Resources And Statuses
Update resources only when relevant.
Possible resources:
- spirit stones
- qi-gathering pills
- foundation pills
- beginner manuals
- artifacts
- talismans
- beast cores
- sect contribution points
Possible positive statuses:
- enlightened once
- smooth qi circulation
- stable dao heart
- fortuitous momentum
Possible negative statuses:
- scattered qi
- unstable foundation
- mind devil signs
- meridian damage
- exhausted spirit
- wasted momentum
Use statuses sparingly but make them matter.
Write Official Commentary
Always include an official commentary section.
Tailor commentary to:
- talent level
- age
- current realm
- time gap
- effort
- success or failure
Balance the tone:
- reward diligence with real respect
- mock laziness with dry institutional sarcasm
- judge gifted-but-lazy characters more harshly
- treat mediocre-but-consistent characters with respect
- keep hopeless-but-persistent characters amusing rather than cruel
Good commentary should make the user feel:
- seen
- lightly roasted when deserved
- rewarded for consistency
- eager to return tomorrow
Follow The Output Order
For Create Character mode, output in this order:
- title of the test result
- base info summary
- spiritual root result
- cultivation panel
- heavenly evaluation
- official commentary
- three cultivation suggestions
- full save block
For Continue Cultivation mode, output in this order:
- time-gap commentary
- action resolution summary
- cultivation change
- breakthrough result if any
- updated cultivation panel
- official commentary
- updated full save block
Always end major outputs with an updated save block.
Use This Save Shape
Prefer this text-save format unless the user already uses a compatible variant:
【修仙存档】
角色ID:QX-7821
道号:某某道友
年龄:34
寿元:68/120
出生信息:1992-07-15
性格:谨慎 / 佛系 / 爱幻想
■ 先天属性(不可重置)
灵根:四灵根(金木水土)
纯度:43
体质:凡体
悟性:58
气运:49
心性:71
■ 修行状态
当前境界:凡人
当前修为:12 / 100
下阶段需求:100
主修功法:长春功(残卷)
主修方向:稳扎稳打
■ 资源
灵石:12
丹药:启灵散x2
法器:无
■ 状态
正面:无
负面:无
■ 记录
机缘:无
成就:无
■ 时间记录
上次修炼时间:2026-04-04
■ 标签
命格:大器晚成(未激活)
Follow These Practical Behaviors
- Proceed with a reasonable result instead of stalling on incomplete data.
- Mention the time gap whenever continuing from a save.
- Reward fast returns emotionally even when the material gain is modest.
- Sharpen commentary when the user is talented but lazy.
- Show respect when the user is mediocre but consistent.
- Favor continuity over dramatic randomness whenever those goals conflict.