mindfulness
À propos
Cette compétence fournit aux développeurs des techniques de conscience situationnelle défensive pour l'évaluation des menaces et le maintien de la clarté mentale sous pression. Elle inclut des systèmes pratiques tels que le code couleur de Cooper, la boucle OODA et des méthodes de désescalade, utilisables dans des environnements non familiers ou potentiellement hostiles. Mettez-la en œuvre pour renforcer programmatiquement les protocoles de sécurité, évaluer les risques et gérer le stress lors de confrontations ou dans les déplacements quotidiens.
Installation rapide
Claude Code
Recommandénpx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/mindfulnessCopiez et collez cette commande dans Claude Code pour installer cette compétence
Documentation
養防身覺
養應用境覺、解激術、與壓下持明之能——坐禪之實補,於動之實境中行。
用
- 入未知或潛敵境
- 估社或物境之安
- 言衝升前解之
- 高壓險時持靜專
- 驚突或腎上衝後速接地
- 將覺植入日動(行、通勤、旅)
- 武訓前備心(見
tai-chi、aikido)
入
- 必:願練持外注(與內禪反)
- 必:可入公或半公境練(街、運、會)
- 可:先禪歷(見
meditate;助而非必) - 可:武訓背景(見
tai-chi、aikido;增實應) - 可:練伴供解激角色扮
行
一:估境覺(Cooper 色碼)
Cooper 色碼系供校境覺之框。
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 │
└──────────┴─────────────────────┴──────────────────────────────────────────┘
練法:
- 出宅時明轉白為黃
- 黃中掃:何人在?出何在?此地常為何?
- 引注時轉橙:明憂為何且立預:「若 X 則行 Y」
- 憂解→返黃,勿留橙(耗能)
- 練白至黃轉至自動(日練 2-4 週)
得:恆練後黃為公境之自然默。異即覺無覺尋。出與位為慣思。
敗:黃覺累或疑→注過聚。黃宜鬆廣——如周邊視,非聚光。常於橙→或過校威。先於安熟境練立可恆穩之黃。
二:讀體語與意
多威於行前以體顯意。學讀攻前兆。
- 基察:新境記常行——速、姿、目接模、群動
- 異察:標離常行:
- 立而掃眾(擇標)
- 握拳、方肩、刃姿(戰前態)
- 避目接而近(捕近)
- 動境中過靜或不自然之止
- 目模:陌人之直鎖目可示挑或捕注。屢視汝後移或為偵或估標
- 距:無社理而近者(不於隊中、非過)值注。信「彼太近」之直
- 群動:察一人引注(擾),他人動(設)。群中先約之號(點、勢)
- 直:邊系處威速於覺心。覺異→敬其號增覺,勿即理之去
得:實時識攻前兆,由黃轉橙含明憂。對行不合社脈之泛感。
敗:讀體似猜→先於安境練:察咖啡、運、園之交。記姿、距、能而無威分。讀人由察量而成。覺過警(處處見威)→以步六接地,提醒多人非威。
三:解言衝
升言時,解激為最值之術。多暴可以言與位防。
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 │
└──────────────────┴──────────────────────────────────────────────────────┘
關規:
- 勿令怒者「冷靜」——升衝
- 手露開(無威)而位於護(柵姿)
- 勿配其能:彼升則汝更降
- 自驕求「勝」之爭乃可避之暴最常之因
得:以聲、位、術降衝之情溫。多言衝於有效術之 60-90 秒內解。
敗:解後彼仍實威→由解轉逃,逃不可→實防(見 aikido、tai-chi)。非諸境可言。識解已敗,無豫轉行。
四:練動覺
動覺施禪覺於行、通勤、過公境。
- 行時練全景覺:柔目納全視野勝聚一點
- 各步感地接——此於身錨覺而目掃境
- 持後空之覺:聲變(步速、語停)含信
- 過渡時(入樓、繞角、下車)暫停掃新境後行
- 擁中於周邊覺追 2-3 人不固一
- 練「鏡步」:合境之速律以融;故變速試若有人配
- 時察:「若即起事吾何往?」此乃黃態維持
得:行為活覺練非被動運。過渡(門、角、台緣)為自然掃點。境基無力持。
敗:動覺累擾→或握過緊。覺宜如聞背樂——在而不索。思語時不能持→先於簡境練(靜里行)後加複(鬧街、運)。
五:養戰覺(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:
- 日生練速景估:入室 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 │
└──────────────────────┴─────────────────────────────────────────────────┘
- 無壓時練此術以備需時可用
- 戰息為單最有效之速干預——日練之
- 任腎事後(險過、衝、驚)行盒息後決
- 合術:物錨+戰息對強反有效
得:可於 60-120 秒由急壓降至功用明。術練至壓下無覺自起。
敗:術 2 分內不解→換他——非諸術合諸人諸境。接地無效因壓持(仍危)→接地早,先以 OODA(步五)治境後接地。事後常不能降→或需專助。
七:跨境合
於異境異況恆施防覺。
- 市:高基警(穩黃)。追盲(巷、梯、停場)。ATM、運台、上下車時持覺
- 野:威異——地險、氣、獸、迷途。覺由人轉境。導航與避所估代社威讀(見野技)
- 社事:到時識出。監他人酒(醉者難測)。近出勝近眾中
- 旅:未知境警增。知國急號。文與貴分置非一袋。記至宿之徑
- 數:覺延信安——誰觀器、汝公分何、器之物安
- 與人:汝之覺護伴。位於潛威與伴間。略告伴基覺勿致憂
得:恆穩之基覺,依脈調而不疑不累。諸境黃持,真異有橙應。
敗:覺練生憂或過警→校過高。返一於熟安境練黃。標為鬆警,非恆掃威。覺擾享生→諮心健專——尤若創傷史使威估不可信。
八:審與精
如諸技,防覺由意審與誠自評升。
- 任顯覺事後(成識、解、漏、凍)記詳:
- 何發?
- 始時於何色?
- 察何?漏何?
- 何行?何當異?
- 月審:掃記尋模——常盲、覺降之境、擾之情態
- 求訓:解激坊、景式自衛課、急救證
- 與伴練:扮衝景、練言解、互評位
- 交訓:武(見
aikido、tai-chi)養實應;禪(見meditate)養覺所運之靜基 - 持身健:心管系健時身應壓更佳
得:時內可測升:異更速識、壓更靜應、位更善慣、解更有效。
敗:技平→引新境或伴。意衰→憶覺乃投,於需之一刻回。自評顯持弱(如常凍、不察後近)→專標之非續泛練。
驗
- Cooper 色碼可實時識施
- 至少 3 攻前體語兆可名識
- 解激框可述且已練(少於扮)
- 動覺於日通勤或行至少 1 週
- 戰息(盒息)可憶行且日練
- 至少 2 速接地術已試且識一首選
- OODA 環施於至少 3 「若…」景
- 覺記至少 3 條實察
忌
- 過警偽覺:真覺鬆且可恆。若累憂處處見威→於慢橙——逆生不可恆。標為黃,非橙
- 隧視於明威:吼者或為擾。中注被奪時練掃周。多威覺乃 randori 訓之旨(見
aikido) - 令怒者冷靜:最常解激誤。示其情無效汝控——皆升衝。改認其情態
- 忽言前實:多暴前有言升。有效解免大多實衝。投言術回勝獨投實術
- 事後略接地:腎上事後 20-45 分擾判。此窗中決(尤激)不可信。先接地後決
- 獨訓:覺與解乃社技。獨練築基,伴演與實練為實能必
參
aikidotai-chimeditatehealremote-viewingawareness
Dépôt GitHub
Compétences associées
content-collections
MétaCette compétence propose une configuration éprouvée en production pour Content Collections, un outil axé sur TypeScript qui transforme des fichiers Markdown/MDX en collections de données typées de manière sûre avec une validation Zod. Utilisez-la lors de la création de blogs, de sites de documentation ou d'applications Vite + React riches en contenu pour garantir la sécurité de typage et la validation automatique du contenu. Elle couvre tout, de la configuration du plugin Vite et de la compilation MDX à l'optimisation des déploiements et la validation des schémas.
polymarket
MétaCette compétence permet aux développeurs de créer des applications avec la plateforme de marchés prédictifs Polymarket, incluant l'intégration d'API pour le trading et les données de marché. Elle fournit également une diffusion de données en temps réel via WebSocket pour surveiller les transactions en direct et l'activité du marché. Utilisez-la pour mettre en œuvre des stratégies de trading ou pour créer des outils traitant les mises à jour de marché en direct.
creating-opencode-plugins
MétaCette compétence aide les développeurs à créer des plugins OpenCode qui s'interconnectent avec plus de 25 types d'événements tels que les commandes, les fichiers et les opérations LSP. Elle fournit la structure du plugin, les spécifications de l'API événementielle et les modèles d'implémentation pour les modules JavaScript/TypeScript. Utilisez-la lorsque vous avez besoin d'intercepter, de surveiller ou d'étendre le cycle de vie de l'assistant IA OpenCode avec une logique personnalisée pilotée par les événements.
sglang
MétaSGLang est un framework de service LLM haute performance spécialisé dans la génération rapide et structurée pour les workflows JSON, regex et agentiques grâce à son cache de préfixe RadixAttention. Il offre une inférence nettement plus rapide, particulièrement pour les tâches avec des préfixes répétés, ce qui le rend idéal pour les sorties complexes et structurées ainsi que les conversations multi-tours. Choisissez SGLang plutôt que des alternatives comme vLLM lorsque vous avez besoin d'un décodage contraint ou que vous construisez des applications avec un partage étendu de préfixes.
