Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/huifer/wellally-health/cognitivegit clone --depth 1 https://github.com/huifer/WellAlly-healthWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00028 | $0.02645 |
| Opus 5 | $0.00014 | $0.01323 |
| Sonnet 5 | $0.00006 | $0.00529 |
| Haiku 4.5 | $0.00003 | $0.00265 |
Grade A, and why
cognitive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.
认知功能评估命令 (Cognitive Assessment)
功能概述
用于管理老年人的认知功能评估,包括MMSE、MoCA测试、认知域评估和日常功能评估。
⚠️ 安全红线
-
不诊断认知功能障碍或痴呆
- 不做阿尔茨海默病等痴呆诊断
- 诊断需神经科/老年科医生
-
不替代神经科/老年科专业评估
- 系统仅用于筛查和追踪
- 异常结果需就医确诊
-
不给出具体药物治疗方案
- 不推荐胆碱酯酶抑制剂等药物
- 用药需医生处方
✅ 系统能做到的
- 认知功能筛查(MMSE/MoCA)
- 认知下降趋势追踪
- 日常生活功能评估(ADL/IADL)
- 认知域功能评估
- 风险预警和就医建议
可用操作
1. MMSE测试 - mmse
记录简易精神状态检查(Mini-Mental State Examination)结果。
参数说明:
info: MMSE测试结果(必填)- 总分(0-30分)
- 分项分数(可选)
date: 测试日期(可选,默认今天)
执行步骤:
1. 参数识别
- 从info中提取MMSE总分
- 识别格式:
mmse[:\s]+(\d+)或score[:\s]+(\d+) - 如果有分项分数,一并提取
2. 结果解读
- 27-30分: 正常
- 21-26分: 轻度认知功能障碍
- 10-20分: 中度认知功能障碍
- ≤9分: 重度认知功能障碍
3. 记录更新
- 更新
data/cognitive-assessment.json - 记录测试日期、总分、分项分数
- 计算趋势和年度下降率
- 更新统计数据
4. 输出确认
- 显示本次测试结果
- 显示历史对比(如果有)
- 显示下次评估日期(12个月后)
示例:
/cognitive mmse score 27
/cognitive mmse 24 定向力9分 记忆力6分
2. MoCA测试 - moca
记录蒙特利尔认知评估(Montreal Cognitive Assessment)结果。
参数说明:
info: MoCA测试结果(必填)- 总分(0-30分)
- 教育程度(可选,用于调整分数)
date: 测试日期(可选,默认今天)
执行步骤:
1. 参数识别
- 从info中提取MoCA总分
- 识别格式:
moca[:\s]+(\d+)或score[:\s]+(\d+) - 提取教育程度(可选)
2. 结果解读
- ≥26分: 正常
- 18-25分: 轻度认知功能障碍
- 10-17分: 中度认知功能障碍
- <10分: 重度认知功能障碍
- 教育程度调整: ≤12年教育加1分
3. 记录更新
- 更新
data/cognitive-assessment.json - 记录测试日期、总分、调整后分数
- 更新统计数据
4. 输出确认
- 显示本次测试结果
- 显示教育程度调整
- 显示下次评估日期
示例:
/cognitive moca score 24
/cognitive moca 25 教育12年
3. 认知域评估 - domain
记录特定认知域的功能状态。
参数说明:
info: 认知域评估结果(必填)- 认知域名称(memory/executive/language/visuospatial)
- 功能状态(normal/mild_impairment/moderate_impairment/severe_impairment)
date: 评估日期(可选,默认今天)
可评估的认知域:
memory- 记忆力(即时记忆、短期记忆、长期记忆)executive- 执行功能(计划、问题解决、抽象思维)language- 语言能力(理解、表达、命名)visuospatial- 视空间能力(物体识别、空间定向)
执行步骤:
1. 参数识别
- 从info中提取认知域名称
- 识别格式:
(memory|executive|language|visuospatial)[:\s]+(\w+) - 识别功能状态关键词
2. 记录更新
- 更新
cognitive_domains段 - 记录该认知域的状态
- 更新impaired_domains计数
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 354 lines · 28 tokens per session scan A 42d8f7293b12
cognitive is a command published in the GitHub repository huifer/WellAlly-health (935 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 2,645 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
health
Run health checks on the Claude orchestration system.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.