Validate 标志

Validate

组织热门
agenticnotetaking
validate

Schema validation for notes. Checks against domain-specific templates. Validates required fields, enum values, description quality, and link health. Non-blocking — warns but doesn't prevent capture. Triggers on "/validate", "/validate [note]", "check schema", "validate note", "validate all".

Add to TypingMind

概览

发布者agenticnotetaking
代码仓库arscontexta
技能名称validate
星标数
3.5K
复刻数
226
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 agenticnotetaking 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Validate AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/agenticnotetaking/arscontexta/tree/main/skill-sources/validate
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agenticnotetaking/arscontexta.git /tmp/arscontexta
mkdir -p .claude/skills
cp -r /tmp/arscontexta/skill-sources/validate .claude/skills/validate
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Validate,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Validate。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Validate 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Runtime Configuration (Step 0 — before any processing)

Read these files to configure domain-specific behavior:

  1. ops/derivation-manifest.md — vocabulary mapping, platform hints

    • Use vocabulary.notes for the notes folder name
    • Use vocabulary.note / vocabulary.note_plural for note type references
    • Use vocabulary.topic_map for MOC references
    • Use vocabulary.templates for the templates folder path
  2. ops/config.yaml — processing depth

    • processing.depth: deep | standard | quick

If these files don't exist, use universal defaults.

Processing depth adaptation:

DepthValidation Behavior
deepFull schema validation. All checks enabled including composability analysis and cross-reference verification
standardFull validation — all checks enabled
quickBasic schema validation only — required fields, YAML validity, enum values

EXECUTE NOW

Target: $ARGUMENTS

Parse immediately:

  • If target contains a note name: validate that specific note
  • If target contains --handoff: output RALPH HANDOFF block at end
  • If target is "all" or "notes": validate all notes in {DOMAIN:notes}/ directory
  • If target is empty: ask which note to validate

Execute these steps:

Step 1: Locate Template

Determine which template applies to the target note:

  1. Check the note's location — notes in {DOMAIN:notes}/ use the standard note template
  2. Check the type field in frontmatter — specialized types may have dedicated templates
  3. Look for a templates directory (check ops/templates/ or domain-specific path from derivation manifest)
  4. If the template has a _schema block, read it — this is the authoritative schema definition

If no template is found, use the default schema checks below.

Step 2: Read Target Note

Read the target note's full YAML frontmatter. Parse:

  • All YAML fields and their values
  • The body content (for link scanning)
  • The footer section (for Topics and Relevant Notes)

Step 3: Run Schema Checks

Run ALL validation checks. Each check produces PASS, WARN, or FAIL.

START NOW.


Schema Checks

Required Fields (FAIL if missing)

CheckRuleHow to Verify
descriptionMust exist and be non-emptyCheck YAML frontmatter for description: field with non-empty value
TopicsMust link to at least one {DOMAIN:topic map}Check for topics: in YAML or Topics: section in footer. Must contain at least one wiki link

A missing required field is a hard failure. The note cannot pass validation without these.

Description Quality (WARN if weak)

CheckRuleHow to Verify
LengthShould be ~50-200 charactersCount characters in description value
New informationMust add context beyond the titleCompare description text against filename/title — if semantically equivalent, WARN
No trailing periodConvention: descriptions don't end with periodsCheck last character
Single sentenceShould be one coherent statementCheck for sentence-ending punctuation mid-description

How to check "adds new info": Read the title (filename without .md). Read the description. If the description merely restates the title using different words, it fails this check. A good description adds one of:

  • Mechanism — how or why the claim works
  • Scope — what boundaries the claim has
  • Implication — what follows from the claim
  • Context — where the claim applies

Examples:

Bad (restates title):

  • Title: vector proximity measures surface overlap not deep connection
  • Description: "Semantic similarity captures surface-level overlap rather than genuine conceptual relationships"

Good (adds mechanism):

  • Title: vector proximity measures surface overlap not deep connection
  • Description: "Two notes about the same concept with different vocabulary score high, while genuinely related ideas across domains score low"

YAML Validity (FAIL if broken)

CheckRuleHow to Verify
Frontmatter delimitersMust start with --- on line 1 and close with ---Read first line and scan for closing delimiter
Valid YAMLMust parse without errorsCheck for common YAML errors: unquoted colons in values, mismatched quotes, bad indentation
No duplicate keysEach YAML key appears only onceScan for repeated field names
No unknown fieldsFields not in the template schemaCompare against _schema.required and _schema.optional if available — unknown fields get WARN

Domain-Specific Enum Checks (WARN if invalid)

If the note has fields with enumerated values, check them against the template's _schema.enums block:

FieldExpectedSeverity
typeValues from template enum (e.g., claim, methodology, tension, problem, learning)WARN
statusValues from template enum (e.g., preliminary, open, dissolved)WARN
classificationValues from template enum (e.g., open, closed)WARN
Custom domain fieldsValues from template enumWARN

If a field has a value not in the enum list, report the invalid value and list the valid options.

Link Health (WARN per broken link)

CheckRuleHow to Verify
Body wiki-linksEach [[link]] should point to an existing fileExtract all [[...]] patterns from body, check each against file tree
Topics links{DOMAIN:topic map} referenced in Topics must existVerify each topic wiki link resolves
Relevant notes linksEach note in relevant_notes must existVerify each wiki link in relevant_notes resolves
Backtick exclusionWiki links inside backticks are examples, not real linksSkip [[...]] patterns inside single or triple backtick blocks

How to verify link resolution: For each [[link text]], check if a file named link text.md exists anywhere in the vault. Wiki links resolve by filename, not path.

Relevant Notes Format (WARN if incorrect)

CheckRuleSeverity
FormatArray with context: ["[[note]] -- relationship"]WARN
Context phrase presentEach entry should include -- or — followed by relationship descriptionWARN
Relationship typeStandard types: extends, foundation, contradicts, enables, exampleINFO
No bare links["[[note]]"] without context is a bare link — useless for navigationWARN

Composability (WARN if fails)

CheckRuleHow to Verify
Title testCan you complete "This note argues that [title]"?Read the title as a sentence fragment — does it make a claim?
SpecificityIs the claim specific enough to disagree with?Could someone reasonably argue the opposite?
Prose fitnessWould since [[title]] read naturally in another note?Check if the title works as an inline wiki link

Topic labels vs claims:

  • "knowledge management" — topic label, not a claim, FAILS composability
  • "knowledge management requires curation not accumulation" — claim, PASSES composability

Batch Mode

When validating all notes (target is "all" or "notes"):

  1. Discover all .md files in {DOMAIN:notes}/ directory
  2. Optionally include additional directories (e.g., self/memory/) if they exist
  3. Run all schema checks on each note
  4. Produce summary report:
    • Total notes checked
    • PASS / WARN / FAIL counts
    • Top issues grouped by check type
    • Notes needing immediate attention (FAIL items)
    • Pattern analysis: are certain check types failing systematically?

Batch output format:

## Validation Summary

Checked: N notes
- PASS: M (X%)
- WARN: K (Y%)
- FAIL: J (Z%)

### FAIL Items (immediate attention)
| Note | Check | Detail |
|------|-------|--------|
| [[note]] | description | Missing |
| [[note]] | topics | No topics footer |

### Top WARN Patterns
- Description restates title: N notes
- Missing context phrases in relevant_notes: N notes
- Enum value not in template: N notes

### Notes Needing Attention
1. [[note]] — 2 FAIL, 1 WARN
2. [[note]] — 1 FAIL, 3 WARN

Output Format (Single Note)

=== VALIDATION: [[note title]] ===

PASS:
- description: present, 147 chars, adds mechanism beyond title
- topics: ["[[topic-name]]"] — exists
- yaml: well-formed, valid delimiters
- composability: title works as prose ("This note argues that [title]")

WARN:
- relevant_notes: bare link without context phrase for [[note-x]]
- type: "observation" not in template enum (valid: claim, methodology, tension, problem, learning)

FAIL:
- (none)

Overall: PASS (2 warnings)
===

If WARN or FAIL items exist, include:

### Suggested Fixes
- **relevant_notes**: Add context phrase — e.g., `["[[note-x]] -- extends this by adding..."]`
- **type**: Change to valid enum value or propose adding "observation" to template

Handoff Mode (--handoff flag)

When invoked with --handoff, output this structured format at the END:

=== RALPH HANDOFF: validate ===
Target: [[note title]]

Work Done:
- Validated against [template name] schema
- Checks run: N
- Status: PASS | WARN | FAIL

Findings:
- PASS: [list]
- WARN: [list or "none"]
- FAIL: [list or "none"]

Files Modified:
- [task file path] (Validate section updated, if applicable)

Learnings:
- [Friction]: [description] | NONE
- [Surprise]: [description] | NONE
- [Methodology]: [description] | NONE
- [Process gap]: [description] | NONE

Queue Updates:
- Mark: validate done for this task
=== END HANDOFF ===

Task File Update

When a task file is in context (pipeline execution), update the ## Validate section:

markdown
## Validate
**Validated:** [UTC timestamp]

Schema check against [template name]:
- description: PASS (147 chars, adds mechanism beyond title)
- topics: PASS (["[[topic-name]]"])
- yaml: PASS (well-formed)
- type: not specified (optional)
- relevant_notes: WARN (bare link for [[note-x]])
- composability: PASS

Overall: PASS (1 warning)

Severity Levels

LevelMeaningAction
PASSMeets requirement fullyNone needed
WARNOptional issue or soft violationConsider fixing, not blocking
FAILRequired field missing or invalid formatMust fix before verification passes
INFOInformational observationNo action needed

FAIL blocks pipeline completion. A note with any FAIL-level issue should NOT be marked done in the queue. It stays at current_phase: "verify" (or "validate" if run standalone) for re-validation after fixes.

WARN does not block. Warnings are quality signals, not gates. A note can proceed through the pipeline with warnings.

Critical Constraints

never:

  • block note creation based on validation failures (validation is a quality check, not a gate)
  • auto-fix issues without reporting them first
  • skip checks because the note "looks fine"
  • report PASS without actually running the check
  • ignore _schema blocks in templates when they exist

always:

  • check ALL schema requirements, not a subset
  • report specific field values in FAIL/WARN messages (not just "description is weak")
  • suggest concrete fixes for every WARN and FAIL
  • use template _schema as the authoritative source when available
  • fall back to default checks gracefully when no template exists
  • log patterns when running batch validation (recurring issues signal systematic problems)

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Validate AI 技能有什么作用?

Schema validation for notes. Checks against domain-specific templates. Validates required fields, enum values, description quality, and link health. Non-blocking — warns but doesn't prevent capture. Triggers on "/validate", "/validate [note]", "check schema", "validate note", "validate all".

为什么在 TypingMind 中使用 Validate?

因为您只需安装一次,就能搭配任何模型使用。Validate 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Validate?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/agenticnotetaking/arscontexta/tree/main/skill-sources/validate。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Validate?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Validate 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Validate 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Validate AI 技能免费吗?

是的。agenticnotetaking 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇