Kb Ai Review Lite 标志

Kb Ai Review Lite

组织
pnp
kb-ai-review-lite

Minimal KB quality-check skill for SharePoint libraries. It creates missing review columns, writes short review outputs in Markdown, sets review status, records completion time, and schedules the next review by category.

Add to TypingMind

概览

发布者pnp
代码仓库sharepoint-skills
技能名称kb-ai-review-lite
星标数
141
复刻数
60
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/sharepoint-skills.git /tmp/sharepoint-skills
mkdir -p .claude/skills
cp -r /tmp/sharepoint-skills/Skills/kb-ai-review-lite/kb-ai-review-lite .claude/skills/kb-ai-review-lite
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Kb Ai Review Lite。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

KB AI Review Lite

Goal

Perform a lightweight AI validation pass on one or more KB files and store the result as metadata only.

This sample intentionally focuses on one pattern: create required list columns when absent, then populate them.


Use Cases

Use this skill when the user asks to:

  • run a KB review
  • generate review notes
  • add missing review columns
  • mark completion and next review timing

Prompt examples:

  • "review these KB files"
  • "run AI review"
  • "create AI review columns and summarize"

Guardrails

  • Do NOT modify the original KB document content.
  • Do NOT create or upload draft Word files.
  • Do NOT publish content.
  • Only update the fields defined in this skill.
  • Return results in Markdown.

Required Columns (Create If Missing)

Before processing, inspect library schema and ensure all columns below are present.

  1. AI Review State
  • Type: Choice
  • Internal name: AIReviewState
  • Choices: Review Complete, Not Run, Published
  • Recommended default: Not Run
  1. AI Review Summary
  • Type: Note (multi-line text)
  • Internal name: AIReviewSummary
  • Required capacity: long text
  • When creating in a document library, you MUST set UnlimitedLengthInDocumentLibrary: true in the field schema at creation time. The default is false and caps input at 255 characters, which will cause writeback failures. This is not optional.
  1. AI Draft Payload
  • Type: Note (multi-line text)
  • Internal name: AIDraftPayload
  • Content format: Markdown
  • Required capacity: long text
  • When creating in a document library, you MUST set UnlimitedLengthInDocumentLibrary: true in the field schema at creation time. The default is false and caps input at 255 characters, which will cause writeback failures. This is not optional.
  1. Completed On
  • Type: DateTime
  • Internal name: CompletedOn
  1. Reviewed By
  • Type: Text
  • Internal name: ReviewedBy
  • Value guidance: current user or active agent display name
  1. Review Score
  • Type: Number
  • Internal name: ReviewScore
  • Range: 0 to 100
  1. Failure Reason
  • Type: Note (multi-line text)
  • Internal name: FailureReason
  • Keep blank on success; set concise reason on failures
  1. Next Review Date
  • Type: DateTime
  • Internal name: NextReviewDate
  1. KB Category
  • Type: Choice
  • Internal name: KBCategory
  • Choices: Security, Infrastructure, General, Applications, Other
  • Recommended default: Other

Create missing columns with create_or_update_list and avoid duplicates.

When creating these columns for a document library, set them to unlimited-length multi-line mode.


Recertification Cadence

Set NextReviewDate using category-based intervals:

  • Security -> CompletedOn + 30 days
  • Infrastructure -> CompletedOn + 60 days
  • General -> CompletedOn + 90 days
  • Applications -> CompletedOn + 90 days
  • Other -> CompletedOn + 90 days

If the user supplies an override cadence, apply it instead.


Accuracy Baseline

Assess KB content using category-specific sources:

  • Security: Validate against Microsoft MSRC, vendor CVE databases, and internal security policies.
  • Infrastructure: Validate against vendor documentation (AWS, Azure, Cisco, etc.), public runbooks, and internal standards.
  • Applications: Validate against application vendor docs, public APIs, and internal implementation standards.
  • General: Validate for internal consistency and alignment with internal policy.
  • Other: Validate for internal consistency only.

When using web sources, prioritize official vendor documentation first. Include source URLs for any critical correction.


Output Quality Gates

The review is considered weak and must be regenerated if any of the following occur:

  • Findings are generic (for example: "validate details" or "recheck meanings") without concrete wrong and correct values.
  • Update Required: Yes is set but no specific section identifiers are listed.
  • Fewer than 5 concrete findings are reported when a document has obvious factual issues.
  • Critical operational or safety issues are found but not labeled as High severity.
  • No evidence source is provided for material factual corrections.
  • Update Required: No is returned with Findings: 0 for a parameter-heavy document (URLs, versions, timeouts, ports, phone numbers, thresholds, procedures) without explicit claim-by-claim verification evidence.
  • Summary says Update Required: No but payload still contains open questions that imply unresolved factual uncertainty.

Minimum detail requirements when updates are needed:

  • Summary must include at least 5 concrete findings; target 8+ for heavily incorrect documents.
  • Each finding must include: section identifier, incorrect claim, corrected value, and severity (High, Medium, Low).

Minimum detail requirements when no updates are claimed:

  • If Update Required: No, include Verified Claims: <count> in summary.
  • Verified Claims must be at least 8 for operational KBs.
  • Payload must include a ## Verification Evidence section with at least 8 verified claim rows and sources.
  • If these conditions are not met, treat the review as failed quality gate.

Payload Contract (Strict)

When Update Required: Yes, AIDraftPayload MUST include all sections below in this exact order:

  1. ## Findings
  2. Markdown table with columns exactly: ID | Section | Incorrect Claim | Correct Value | Severity | Evidence
  3. ## Proposed Updates
  4. ## Suggested Replacement Text
  5. ## Open Questions
  6. ## Risks

Additional strict rules:

  • Evidence must contain a source URL or internal reference per finding.
  • For High severity findings, evidence is mandatory (never blank).
  • If the document has obvious factual conflicts, include at least 5 finding rows.
  • Do not output ## Proposed Updates before ## Findings.
  • Do not mark review complete if this contract is not met.
  • If Update Required: No, include ## Verification Evidence after ## Findings and before ## Proposed Updates.

## Verification Evidence table format when Update Required: No:

Claim | Verified Value | Source | Result

Result must be Verified for each row.


Process

Step 1 - Resolve Target and Schema

  • Determine target library and files (selected items, named files, or full library).
  • Run get_list_schema to inspect column definitions.
  • If an item is already Published, skip it unless re-review is explicitly requested.

Step 2 - Provision Missing Columns

  • For each required column, check by internal name first.
  • Create only missing columns using standard column creation. Do not create duplicates.
  • Always create columns as standard columns, not autofill or content extraction columns. Column values are written explicitly by this skill. Never prompt the user to choose between column modes.

Before creating any columns, set an internal flag: columns_created = false

If any column was missing and was created during this run:

  • Set columns_created = true

After all provisioning is complete, evaluate the flag:

If columns_created = true:

  • Do NOT proceed to Step 2.1 or Step 3.
  • Do NOT touch any file metadata.
  • Do NOT set AIReviewState or FailureReason on any item.
  • Display the following setup notice and stop all processing:

✅ All review columns have been created with the correct names and types.

⚠️ One manual step is required before the review can run.

Two columns need their text length limit changed in SharePoint:

  1. Go to Library Settings → Columns
  2. Click AI Review Summary
    • Find Allow unlimited length in document libraries
    • Select Yes → Save
  3. Click AI Draft Payload
    • Find Allow unlimited length in document libraries
    • Select Yes → Save

Once both settings are saved, run the review again. All other columns are ready.


This is a one-time setup step per library. It will not be required on subsequent runs.

If the user replies in the same session confirming the column settings have been changed, proceed directly to Step 2.1 without re-provisioning or re-evaluating the flag.

If columns_created = false:

  • All columns already existed before this run.
  • Proceed directly to Step 2.1.

Step 2.1 - Apply Column Formatting

After provisioning columns, apply column formatting to these fields:

  • AIReviewState: colored pill (green=Review Complete, blue=Published, orange=Not Run)
  • ReviewScore: percentage bar with color thresholds (green ≥80, orange ≥50, red <50)
  • KB Category: colored pill (green=Security, blue=Infrastructure, orange=General, purple=Applications, gray=Other)

Apply formatting via the Format column option. This is a display-only change and does not affect stored values.

Step 3 - Read Content (Read-Only)

  • Read each file with cat_file.
  • If a file cannot be read, mark as failed and continue processing the rest.
  • Extract concrete assertions to verify (versions, URLs, ports, protocols, thresholds, timing values, part numbers, and procedural safety steps).
  • Validate those assertions against the Accuracy Baseline for that KB category.

Step 4 - Generate Outputs

For each readable KB, generate:

  1. KB Category
  • Infer exactly one from: Security, Infrastructure, General, Applications, Other.
  • Use the dominant subject area and operational scope.
  • If uncertain, choose Other.
  1. AI Review Summary (plain-language, concise)
  • Include an explicit verdict line: Update Required: Yes or Update Required: No.
  • Include affected section identifiers when updates are needed (for example: Section 2.1, Prerequisites, Step 4, FAQ - Password Reset).
  • Include finding counts: Findings: <total> and High Severity Findings: <count>.
  • If verdict is No, include Verified Claims: <count>.
  • Keep output concise but specific, normally 5 to 10 bullets when updates are required.
  • Suggested summary shape:
markdown
- Update Required: Yes
- Findings: 9
- High Severity Findings: 3
- Affected Sections: Section 2.1; Step 4 - Validation; FAQ - Error Code 403
- Accuracy: <short finding>
- Completeness: <short finding>
- Clarity/Currency: <short finding>

No-update summary shape:

markdown
- Update Required: No
- Findings: 0
- High Severity Findings: 0
- Verified Claims: 10
- Affected Sections: None
- Verification Scope: URL, timeout, browser minimum versions, lockout timing, support contact, cache-clear steps
  1. AI Draft Payload (Markdown)
  • Use this structure:
markdown
## Findings
| ID | Section | Incorrect Claim | Correct Value | Severity | Evidence |
|---|---|---|---|---|---|
| F-01 | Step 3 | <wrong value> | <correct value> | High | <source URL or internal reference> |

## Verification Evidence
| Claim | Verified Value | Source | Result |
|---|---|---|---|
| Session timeout | 30 minutes | <source URL or internal reference> | Verified |

## Proposed Updates
- [Section] What should change and why

## Suggested Replacement Text
### <Section Name>
<proposed text>

## Open Questions
- <question>

## Risks
- <risk>
  • Generate this payload for every successful review, including Update Required: No cases.
  • AIDraftPayload must never be blank when AIReviewState = Review Complete.
  • Ensure the payload satisfies the Payload Contract (Strict) above.
  • Contradiction rule: if extracted claims conflict with baseline sources, verdict cannot be Update Required: No.

Step 5 - Write Metadata

Set these values per reviewed file:

  • AIReviewSummary = generated summary text
  • AIDraftPayload = generated Markdown draft payload
  • AIReviewState = Review Complete
  • CompletedOn = current UTC datetime
  • ReviewedBy = current user or agent name
  • ReviewScore = integer 0 to 100 based on quality signals
  • FailureReason = blank
  • KBCategory = inferred category
  • NextReviewDate = CompletedOn + category cadence (or user-provided cadence)

Writeback routing rules:

  • Write AIReviewSummary only to AIReviewSummary.
  • Write AIDraftPayload only to AIDraftPayload.
  • Write both content fields before setting AIReviewState = Review Complete.
  • Treat AIDraftPayload as a required success field, not an optional extra.
  • If either field is not configured with Allow unlimited length in document libraries, stop writeback, set FailureReason, and tell the user to enable that property on both columns before rerunning.
  • After writeback, re-read both fields and confirm persisted length/content.
  • If AIDraftPayload reads back blank, null, truncated, or missing, treat the file as failed writeback.
  • If the platform's refreshed-field summary does not include AI Draft Payload, assume the payload field was not updated and do not mark the file complete.

Do not set state to Published in this skill.

Quality-gate enforcement before metadata write:

  • If summary or payload fails any quality gate or payload contract requirement:

    • Set AIReviewState = Not Run
    • Set FailureReason = Quality gate failed: missing concrete findings/evidence or invalid payload structure
    • Do NOT write incomplete payload as final output
    • Continue to next file
  • If AIDraftPayload is empty, omitted, or not confirmed after writeback:

    • Set AIReviewState = Not Run
    • Set FailureReason = Writeback failed: AI Draft Payload was not persisted
    • Do NOT report success for that file
    • Continue to next file
  • If output writeback fails due field length/type constraints:

    • Set AIReviewState = Not Run
    • Set FailureReason = Schema/writeback failed: review output columns do not support required payload length
    • Continue to next file
  • If verdict is Update Required: No and Findings = 0 but verification evidence is missing or below threshold:

    • Set AIReviewState = Not Run
    • Set FailureReason = Quality gate failed: no-update verdict lacks required verification evidence
    • Continue to next file

For failed files:

  • FailureReason = concise failure message
  • Keep or set AIReviewState to Not Run
  • Leave CompletedOn and NextReviewDate unchanged unless user requests overwrite

Step 6 - Return Run Report (Markdown)

Return a Markdown table with:

  • File name
  • Action Taken (Review Completed / Failed)
  • AI Review State (after)
  • KB Category
  • Update Required (Yes/No)
  • Findings (count)
  • High Severity Findings (count)
  • Affected Sections (summary identifiers)
  • Completed On
  • Next Review Date
  • Reviewed By
  • Review Score
  • Summary Present (Yes/No)
  • Draft Payload Present (Yes/No)
  • Refreshed Fields
  • Failure Reason (if any)

Example Run

User: "Run AI review on all KB files in this library"

Agent actions:

  • Check schema.
  • Create missing columns (AIReviewState, AIReviewSummary, AIDraftPayload, CompletedOn, ReviewedBy, ReviewScore, FailureReason, NextReviewDate, KBCategory) if needed.
  • Read all target KB files.
  • Infer KB category per file.
  • Generate concise summary + Markdown payload per file.
  • Update metadata fields.
  • Return Markdown table of outcomes.

Constraints

  • Never edit the body content of source KB files.
  • Never publish content.
  • Always run schema check before updates.
  • Never create duplicate columns with alternate naming.
  • Continue processing remaining files if one file fails.
  • If a file is already Published, skip it unless user explicitly asks to re-review published content.
  • Always map each reviewed file to exactly one KB category.

常见问题

Kb Ai Review Lite AI 技能有什么作用?

Minimal KB quality-check skill for SharePoint libraries. It creates missing review columns, writes short review outputs in Markdown, sets review status, records completion time, and schedules the next review by category.

为什么在 TypingMind 中使用 Kb Ai Review Lite?

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

如何在 TypingMind 中安装 Kb Ai Review Lite?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/pnp/sharepoint-skills/tree/main/Skills/kb-ai-review-lite/kb-ai-review-lite。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Kb Ai Review Lite?

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

Kb Ai Review Lite 可以搭配多少个 AI 模型使用?

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

Kb Ai Review Lite AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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