Back to Skills

mindfulness

pjt222
Updated Yesterday
3 views
17
2
17
View on GitHub
Metaaiapi

About

This skill provides techniques for maintaining defensive situational awareness and mental clarity in high-pressure or potentially dangerous situations. It includes threat assessment systems, de-escalation methods, and stress management tools like the OODA loop. Developers should use it when entering unfamiliar environments, assessing for safety, or needing to manage confrontation.

Quick Install

Claude Code

Recommended
Primary
npx skills add pjt222/agent-almanac -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/pjt222/agent-almanac
Git CloneAlternative
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/mindfulness

Copy and paste this command in Claude Code to install this skill

Documentation

養防禦性正念

養應用之情境覺察、化解之能與壓力下保心明之力——坐式冥想之實用補體,運於動態之現實環境。

適用時機

  • 入未熟或可能敵意之環境
  • 須評社交或物理情境之安全
  • 化解口角,使不入肢體衝突
  • 高壓或危險事件中保冷靜專注
  • 受驚、突襲或腎上腺爆發後速接地
  • 將覺察融入日常行動(步行、通勤、旅行)
  • 武術訓練前備心智部分(見 tai-chiaikido

輸入

  • 必要:願練持續向外之注意(此為內向冥想之反)
  • 必要:可入公共或半公共環境以練(街道、交通、活動)
  • 選擇性:先前冥想經驗(見 meditate;有助但非必)
  • 選擇性:武術訓練背景(見 tai-chiaikido;增物理回應選項)
  • 選擇性:化解角色扮演之練習夥伴

步驟

步驟一:評情境覺察(庫珀色碼)

庫珀色碼系統為調覺察等級於環境之框架。

Cooper Color Code Awareness Levels:
┌──────────┬─────────────────────┬──────────────────────────────────────────┐
│ Code     │ State               │ Description and Application              │
├──────────┼─────────────────────┼──────────────────────────────────────────┤
│ White    │ Unaware             │ Absorbed in phone, headphones, day-      │
│          │                     │ dreaming. No awareness of surroundings.  │
│          │                     │ Acceptable only in secured private space │
├──────────┼─────────────────────┼──────────────────────────────────────────┤
│ Yellow   │ Relaxed alert       │ Aware of surroundings without fixation.  │
│          │                     │ Scanning people, exits, anomalies. This  │
│          │                     │ is the DEFAULT state in public spaces    │
├──────────┼─────────────────────┼──────────────────────────────────────────┤
│ Orange   │ Specific alert      │ Something has triggered attention: a     │
│          │                     │ person, behavior, or situation. Forming  │
│          │                     │ a plan: "If X happens, I will do Y"      │
├──────────┼─────────────────────┼──────────────────────────────────────────┤
│ Red      │ Action              │ The trigger condition from Orange has    │
│          │                     │ occurred. Execute the pre-formed plan.   │
│          │                     │ No hesitation — decision was made in     │
│          │                     │ Orange                                   │
├──────────┼─────────────────────┼──────────────────────────────────────────┤
│ Black    │ Overwhelmed         │ Panic, freeze, tunnel vision. Caused by │
│          │                     │ jumping from White directly to Red with  │
│          │                     │ no mental preparation. AVOID this state  │
└──────────┴─────────────────────┴──────────────────────────────────────────┘

練習程序:

  1. 離家時,自覺自白轉黃
  2. 黃中掃視:四周何人?何處有出口?此處基線行為為何?
  3. 某物引注意時,轉橙:辨具體之關切並備應變
  4. 關切解則歸黃——勿無故留橙(耗能)
  5. 練白至黃之轉換直至自動(每日練二至四週)

預期: 持練後,黃成公共空間之自然預設。異常立顯而無須意識搜尋。出口與位置成慣常考量。

失敗時: 若黃覺累或偏執,注意力過聚。黃應放鬆而廣——如周邊視覺,非聚光。若常入橙,或為過度校威脅。先於安全熟悉之環境練以立可持之冷靜「黃」。

步驟二:讀肢體語言與意圖

多數威脅於行動前以肢體語言傳意。學讀攻擊前指標。

  1. 基線觀察:於任何新環境,注意正常行為之樣——步調、姿勢、目光接觸模式、群動
  2. 偏離偵測:標偏基線之行:
    • 立而掃眾者(目標選擇)
    • 緊拳、方肩、側立(戰前姿態)
    • 避目而縮距(捕食型接近)
    • 動態環境中誇張之冷靜或不自然之靜
  3. 目光模式:陌生人之直接、鎖定目光可示挑釁或捕食聚焦。對汝反覆瞥而避者可示監視或目標評估
  4. 空間距離:無社交因而縮距者(不在隊、不過道)值關注。信「此人太近」之直覺
  5. 群動:察一人吸注意(分心)而另一人佈局(設置)。群成員間之預定信號(點頭、手勢)
  6. 直覺反應:邊緣系統處理威脅較有意識之心更快。若覺有不對,敬此信號並增覺察,勿先理性化之

預期: 即時察攻擊前指標並由黃轉橙含具體關切之力。對某人行為不合社交脈絡之概感。

失敗時: 若讀肢體語言覺猜測,先於安全環境練:於咖啡館、公共交通、公園觀互動。記姿勢、距離、能量等級而無威脅成分。讀人乃由觀察量而成之技。若成過度警戒(處處見威脅),以步驟六接地並重校:多數人非威脅。

步驟三:化口角

情境口頭升級時,化解為最高價值之技。多數暴力可由言與位防之。

De-escalation Framework:
┌──────────────────┬──────────────────────────────────────────────────────┐
│ Phase            │ Technique                                            │
├──────────────────┼──────────────────────────────────────────────────────┤
│ 1. Space         │ Maintain 2+ arm-lengths distance. Angle your body   │
│                  │ 45 degrees (non-confrontational, protects center     │
│                  │ line). Position an exit route behind you, never      │
│                  │ behind the aggressor                                 │
├──────────────────┼──────────────────────────────────────────────────────┤
│ 2. Voice         │ Lower your volume below theirs — this forces them   │
│                  │ to quiet down to hear you. Speak slowly. Use a      │
│                  │ calm, even tone. Avoid commands ("calm down") —     │
│                  │ use observations ("I can see you're upset")         │
├──────────────────┼──────────────────────────────────────────────────────┤
│ 3. Acknowledge   │ Name their emotion without agreeing with their      │
│                  │ position: "That sounds really frustrating." Do NOT  │
│                  │ say "I understand" unless you genuinely do. Do NOT  │
│                  │ argue, correct, or explain — yet                    │
├──────────────────┼──────────────────────────────────────────────────────┤
│ 4. Offer exits   │ Give the person a way to disengage without losing  │
│                  │ face: "I think we both need a minute" or "Let me   │
│                  │ get someone who can help with this." Frame retreat  │
│                  │ as a mutual decision, not submission                │
├──────────────────┼──────────────────────────────────────────────────────┤
│ 5. Disengage     │ If de-escalation fails, create distance. Do not    │
│                  │ turn your back. Move toward other people, exits,   │
│                  │ or authority figures. Leave the area if possible    │
└──────────────────┴──────────────────────────────────────────────────────┘

關鍵規則:

  • 切勿命怒者「冷靜」——此將升級
  • 雙手可見而開(不威脅)但置於可護(柵欄位)
  • 勿配其能量:彼升則汝更化
  • 自我驅之欲「勝」爭論為可避之暴力之最常因

預期: 由聲、位與言技降衝突情緒之溫之力。多數口角於有效技之六十至九十秒內化解。

失敗時: 若化解中其轉肢體威脅,優先自化解轉為逃,若不能逃則為物理防禦(見 aikidotai-chi)。非每境皆可言而下之。識化解失而毫不猶豫轉動。

步驟四:練動態正念

動態正念將冥想之覺察施於行走、通勤與穿越公共空間。

  1. 行走時,練全景覺察:軟眼納全視野,勿聚一點
  2. 感每步觸地——此於眼掃環境時錨覺察於身
  3. 保對身後空間之覺察:聲變(足音加速、談聲止)攜訊
  4. 於轉換處(入樓、轉角、下車)短停掃新環境再進
  5. 擁擠處於周邊覺察追二三人,勿固定於一人
  6. 練「鏡映行」:合環境之步調與律以融入;故意變步調以測有人是否配合
  7. 定期問:「若此刻有事,吾將往何處?」此為黃態之維持

預期: 行走成主動覺察練習,非被動運輸。轉換處(門、轉角、月臺邊)成自然掃視點。環境基線無費而保。

失敗時: 若動態正念覺累或分心,蓋汝握得過緊。覺察應如聽背景樂——在而不索。若無法於思或談時保之,先於簡單環境練(靜街散步),再加複雜(鬧街、交通)。

步驟五:養戰鬥正念(OODA 迴圈)

OODA 迴圈(觀察—定向—決定—行動)為壓力下運作之決策循環。穿此迴圈之速決誰控遭遇。

OODA Loop Application:
┌──────────┬──────────────────────────────────────────────────────────────┐
│ Phase    │ Application                                                  │
├──────────┼──────────────────────────────────────────────────────────────┤
│ Observe  │ Take in the full situation: who, what, where, how many,     │
│          │ weapons, exits, bystanders. Use peripheral vision. Do not   │
│          │ fixate on the most obvious stimulus — scan the whole scene  │
├──────────┼──────────────────────────────────────────────────────────────┤
│ Orient   │ Match the observation to your training and experience:      │
│          │ "This is [type of situation]. I have [these options]."      │
│          │ Orientation is where pre-training pays off — trained        │
│          │ responses orient faster than improvised ones                │
├──────────┼──────────────────────────────────────────────────────────────┤
│ Decide   │ Select the best available option — not the perfect one.    │
│          │ A good decision now beats a perfect decision too late.      │
│          │ If Orange-state planning was done (Step 1), the decision   │
│          │ may already be made                                         │
├──────────┼──────────────────────────────────────────────────────────────┤
│ Act      │ Execute with full commitment. Hesitation between decision   │
│          │ and action is the most dangerous gap. Once you act, observe │
│          │ the result and re-enter the loop                            │
└──────────┴──────────────────────────────────────────────────────────────┘

訓練 OODA 迴圈:

  1. 日常中練速情境評估:入室於五秒內辨出口、掩體與最值關切之人
  2. 玩「若...則...」遊戲:「若此刻有人怒入彼門,吾將如何?」立計畫(橙),復釋(歸黃)
  3. 武術練習中訓對特定攻擊之預設回應——此加速定向階段
  4. 於人為壓力下練決策:限時演練、於冷水浸時解題、體運合認知任務
  5. 每實或模擬事件後檢討:「吾觀何?所遺何?何處猶豫?」

預期: OODA 迴圈漸趨自動。觀察廣而速。定向引訓練模式。決於橙作以使紅態行動立至。

失敗時: 若於模擬壓力下凍(黑態),刺激已繞過 OODA 迴圈。此示白與紅之間隙過大。回步驟一,強化黃態之維持,使意外事件遇已警之心。凍乃常之求生反應——可由漸進壓力接種重訓,非由強推自身入極端情境。

步驟六:施速接地術

當壓力、震驚或腎上腺擾清明時,此等技術數秒內復功能性覺察。

Grounding Techniques Quick Reference:
┌──────────────────────┬─────────────────────────────────────────────────┐
│ Technique            │ Method and Use Case                             │
├──────────────────────┼─────────────────────────────────────────────────┤
│ Tactical breathing   │ Inhale 4 counts, hold 4, exhale 4, hold 4.    │
│ (box breathing)      │ Repeat 4 cycles. Activates parasympathetic     │
│                      │ response in ~60 seconds. Use: acute stress,    │
│                      │ pre-confrontation, post-adrenaline dump        │
├──────────────────────┼─────────────────────────────────────────────────┤
│ 5-4-3-2-1 sensory    │ Name 5 things you see, 4 you hear, 3 you can  │
│ anchor               │ touch, 2 you smell, 1 you taste. Forces the   │
│                      │ mind out of internal panic and into present-   │
│                      │ moment external reality. Use: dissociation,    │
│                      │ freeze response, post-traumatic intrusion      │
├──────────────────────┼─────────────────────────────────────────────────┤
│ Peripheral vision    │ Fix eyes on a point, then widen awareness to   │
│ activation           │ the edges of the visual field without moving   │
│                      │ the eyes. Activates parasympathetic nervous    │
│                      │ system and reduces tunnel vision. Use: hyper-  │
│                      │ focus, tunnel vision, adrenaline narrowing     │
├──────────────────────┼─────────────────────────────────────────────────┤
│ Physical anchor      │ Press feet firmly into the ground and feel the │
│                      │ contact. Squeeze and release fists 3 times.    │
│                      │ Roll shoulders back. These physical actions    │
│                      │ re-establish body awareness. Use: dissociation,│
│                      │ shaking, post-event processing                 │
├──────────────────────┼─────────────────────────────────────────────────┤
│ Verbal reset         │ State your name, location, and current task    │
│                      │ aloud: "I am [name], I am at [location], I am │
│                      │ doing [task]." Orienting to facts breaks the   │
│                      │ emotional loop. Use: confusion, panic, sensory │
│                      │ overload                                       │
└──────────────────────┴─────────────────────────────────────────────────┘
  1. 處於壓力時練此等技術,俾需時可用
  2. 戰術呼吸為單一最有效之速干預——每日練之
  3. 任何腎上腺事件後(險過、衝突、震驚),先行盒式呼吸再作任何決策
  4. 合用:物理錨加戰術呼吸對強反應有效

預期: 自急性壓力降至功能性清明於六十至一百二十秒內之力。技術已練至壓力下無意識可呼出。

失敗時: 若一技於兩分內無解,換另一——非所有技皆適所有人或所有境。若接地無效因壓力源持續(仍處危險),則接地過早——先以 OODA(步驟五)處境,後接地。事件後持無法降調節可能示需專業支持。

步驟七:跨境整合

於不同環境與情境中一致地施防禦正念。

  1. 都市:較高之基線警醒(穩黃)。追盲區(巷、樓梯、停車場)。於 ATM、交通月臺及進出車輛時保覺察
  2. 荒野:威脅輪廓不同——地形危、天氣、野生動物、迷路。覺察自人轉至環境。導航與庇護評估代社交威脅讀(見荒野技能)
  3. 社交活動:到時即辨出口。監他人飲酒程度(受損之人不可預測)。近出口而遠人群中心
  4. 旅行:未熟環境中提高警醒。知該國緊急號。文件與貴重分散,勿置一袋。記住所之來回路線
  5. 數位:覺察延及資訊安全——誰在觀汝裝置、汝公開分享為何、裝置之物理安全
  6. 與他人同行:汝之覺察護同行之人。將己置於潛在威脅與所伴之間。於不致焦慮之下簡告同行基本覺察

預期: 隨境變而不偏執不疲憊之一致可持基線覺察。黃態跨境保持,並對真異常作橙態之適切回應。

失敗時: 若覺察練生焦慮或過度警戒,校準過高。回步驟一於熟悉安全之環境練黃。目標為放鬆警醒,非永久威脅掃描。若覺察練擾生活之樂,諮心理專業——尤若創傷史使威脅評估不可靠。

步驟八:審察與精煉

如任何技,防禦正念由刻意審察與誠實自評而進。

  1. 任何顯著覺察事件(成功偵測、化解、漏察、凍)後,記日誌:
    • 發生何事?
    • 始時吾在何色碼?
    • 觀何?遺何?
    • 何法有效?何處將異?
  2. 月審:掃日誌找模式——重現之盲區、覺察落之環境、擾之情緒態
  3. 求訓:化解工作坊、情境式自衛課、急救證書
  4. 與夥伴練:角色扮演衝突情境、練口頭化解、互評位置
  5. 跨訓:武術(見 aikidotai-chi)建物理回應選項;冷靜冥想(見 meditate)建覺察所運之冷靜基線
  6. 保體能:心血管系統受訓時身體之壓力反應更佳

預期: 隨時可量之進步:更速之異常偵測、更冷靜之回應、更佳之位置慣例與更有效之化解。

失敗時: 若技平台期,引新環境或訓練夥伴。若動機衰,憶覺察為投資,於需之那一刻方見其報。若自評揭持續弱點(如總凍、總不察身後接近),則專攻之而非續通練。

驗證

  • 庫珀色碼可即時辨並施
  • 至少能名並認三攻擊前肢體語言指標
  • 化解框架可言並已練(至少角色扮演)
  • 動態正念於日常通勤或步行中至少練一週
  • 戰術呼吸(盒式呼吸)可由記憶執行,每日已練
  • 至少二速接地術已試並識一首選方法
  • OODA 迴圈已施於至少三「若...則...」情境
  • 覺察日誌至少三條記實際觀察

常見陷阱

  • 過度警戒偽裝為覺察:真覺察為放鬆可持。若疲憊、焦慮或處處見威脅,正處慢性橙——適得其反不可持。黃為目標,非橙
  • 聚焦於明顯威脅之隧道視:吼者或為分心。訓己於有物吸中心注意時掃周邊。多重威脅覺察為亂取(randori)訓練之目的(見 aikido
  • 命怒者「冷靜」:化解最常見之錯。其傳達其情無效而汝控之——皆升級。應認其情緒態
  • 忽口頭而越至物理:多數暴力先有口頭升級。有效化解防多數物理衝突。投於口技勝於僅練物理術
  • 事件後忽接地:腎上腺於事件後二十至四十五分鐘擾判斷。此窗中之決策(尤為攻擊性者)不可靠。先接地,再決策
  • 獨修:覺察與化解為社交技。獨修建基,然夥伴演練與現實實作為實戰能力之要

相關技能

  • aikido — 化解失時之物理技;融合與重定向之原則映口頭化解
  • tai-chi — 養支撐物理就緒與情緒調節之根定靜與身覺
  • meditate — 建覺察所運之基線心靜;坐式練補防禦正念之主動向外焦點
  • heal — 急救知與壓力管理為防禦正念之直接應用
  • remote-viewing — 共感知敏度訓練;非局部覺察操補環境掃視技
  • awareness — AI 自應用變體;映庫珀色碼與 OODA 迴圈於幻覺風險與上下文衰退之內部威脅偵測

GitHub Repository

pjt222/agent-almanac
Path: i18n/wenyan-lite/skills/mindfulness
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

polymarket

Meta

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

View skill

creating-opencode-plugins

Meta

This skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill