Token导航 LogoToken导航TokenDH.com
待分类权限需确认github未标认证来源可访问许可证需确认审计未展示

document-detection文件检测

Agent Skill

document-detection 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

198

周安装

8

GitHub Stars

28

下载量

62
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:document-detection(文件检测)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/document-detection
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill document-detection
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill document-detection

简介

该技能检测身份证件轮廓以验证取景框正确定位,辅助后续透视校正。

  • 适用于证件识别流水线中前置边缘提取环节,提升 OCR 准确率。
  • 采用灰度化、高斯模糊与 Canny 算法组合实现稳健检测。
  • 安装前请确认图像分辨率与光照条件符合预期,避免误检漏检。
  • document-detection 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

created
2026-01-09
modified
2026-04-25
reviewed
2026-04-25
name
document-detection
description
|
user-invocable
false
allowed-tools
Read, Grep, Glob, Bash

Document Detection

Proactively identify when conversations should become structured documents (PRDs, ADRs, or PRPs) and guide users through the documentation workflow.

When to Use This Skill

Use this skill when...Use blueprint-derive-prd instead when...
Mid-conversation cues suggest a PRD/ADR/PRP should be capturedYou're explicitly extracting a PRD from existing README/docs
The user says "I want to build...", "users should be able to..."Use blueprint-derive-adr instead when the cue is a tech-choice decision
The user compares trade-offs ("should we use X or Y?")Use document-linking instead to wire IDs across already-created docs
Implementation scope is being discussed and warrants a PRPUse blueprint-prp-create instead when you've already decided to author a PRP

When This Skill Activates

This skill is loaded when conversation context suggests documentation opportunities:

  • Feature requirements being discussed
  • Architecture decisions being made
  • Implementation planning in progress
  • Technology trade-offs being evaluated

Prerequisites

Document detection requires:

  1. Blueprint initialized in project (docs/blueprint/manifest.json exists)
  2. has_document_detection: true in manifest structure
  3. docs/ directory structure created

Check prerequisites before prompting:

# Verify blueprint is initialized with document detection enabled
jq -r '.structure.has_document_detection // false' docs/blueprint/manifest.json 2>/dev/null

Detection Patterns

PRD Indicators (Product Requirements)

Primary triggers (confidence +0.5 each):

  • Feature descriptions: "I want to build...", "The system should...", "We need a feature that..."
  • User stories: "As a [user], I want...", "Users should be able to..."
  • Requirements enumeration: Lists of features or capabilities
  • Problem/solution framing: "The problem is... the solution is..."

Confidence boosters (+0.1-0.2 each):

  • Multiple features mentioned (+0.2)
  • User personas identified (+0.1)
  • Success criteria discussed (+0.1)
  • Priority levels mentioned (P0, P1, must-have, nice-to-have) (+0.1)
  • Timeline or milestones mentioned (+0.1)

Example triggers:

"I want to build a user authentication system with OAuth2 support, password reset, and MFA"
"As an admin, I want to manage user permissions so that I can control access"
"We need to implement: 1) user registration, 2) email verification, 3) profile management"

ADR Indicators (Architecture Decisions)

Primary triggers (confidence +0.5 each):

  • Technology comparisons: "Should we use X or Y?", "Which is better: X or Y?"
  • Trade-off discussions: "The pros and cons of...", "The trade-offs between..."
  • "Why did we choose..." questions
  • Framework/library selection discussions
  • Design pattern debates

Confidence boosters (+0.1-0.2 each):

  • Multiple options explicitly compared (+0.2)
  • Trade-offs listed with pros/cons (+0.1)
  • Long-term impact discussed (+0.1)
  • Team disagreement on approach (+0.1)
  • Reversibility or commitment discussed (+0.1)

Example triggers:

"Should we use PostgreSQL or MongoDB for the user data? We need to consider query patterns and scalability"
"The pros of using microservices are scalability and team independence, but the cons are operational complexity"
"Why did we choose React over Vue? Let me document the decision"

PRP Indicators (Implementation Prompts)

Primary triggers (confidence +0.5 each):

  • Implementation intent: "Let's implement...", "How do we build...", "Time to code..."
  • Specific feature scope: "the authentication module", "the payment flow", "the dashboard component"
  • Technical approach discussions: "We'll use X pattern to...", "The implementation will..."
  • File/component planning: "We need to create files for...", "The components are..."

Confidence boosters (+0.1-0.2 each):

  • File paths or component names mentioned (+0.2)
  • Test approach discussed (+0.1)
  • Clear scope boundaries defined (+0.1)
  • Dependencies identified (+0.1)
  • PRD reference made (+0.1)

Example triggers:

"Let's implement the payment processing module with Stripe integration"
"We need to create PaymentService.ts, add routes in /api/payments, and write integration tests"
"Time to build the dashboard - it needs charts, filters, and export functionality"

Confidence Calculation

Threshold for prompting: >= 0.7

Base confidence: 0.0
+ Primary trigger matched: +0.5
+ Additional primary trigger: +0.3
+ Each booster matched: +0.1 to +0.2

Total >= 0.7 → Prompt user
Total < 0.7 → Continue without prompting

Examples:

  • "I want authentication" → 0.5 (single trigger, below threshold)
  • "I want to build authentication with OAuth, MFA, and password reset" → 0.5 + 0.2 (multiple features) = 0.7 (meets threshold)
  • "Should we use Postgres?" → 0.5 (single trigger, below threshold)
  • "Should we use Postgres or MongoDB? Postgres has better querying but MongoDB scales easier" → 0.5 + 0.2 (comparison) + 0.1 (trade-offs) = 0.8 (exceeds threshold)

Detection Flow

When confidence >= 0.7, execute this flow:

Step 1: Prompt User

Use AskUserQuestion to confirm document creation:

question: "This looks like a [PRD/ADR/PRP] opportunity. Would you like to document it?"
options:
  - label: "Yes, create [document type]"
    description: "I'll gather context and create the document"
  - label: "Add to backlog"
    description: "Record this topic for later documentation"
  - label: "Not now, remind me later"
    description: "Continue conversation, prompt again if topic expands"
  - label: "No, just continue"
    description: "Skip documentation for this topic"

Step 1.5: Backlog Path (if "Add to backlog" selected)

For ADR opportunities, append the decision topic to the Proposed ADRs section in docs/adrs/README.md:

  1. Check that docs/adrs/README.md exists (create from template if missing)
  2. Append a bullet to the Proposed ADRs section:
   - [ ] {Decision topic} — {brief context from conversation} (identified {YYYY-MM-DD})
  1. Remove the _No proposed ADRs at this time._ placeholder if present
  2. Confirm to user: "Added to proposed ADRs backlog. Run /blueprint:derive-adr when ready to document it fully."

For PRD/PRP opportunities, note the topic in the conversation and suggest revisiting later. No persistent backlog file exists for these types yet.

Step 2: Gather Clarification (if accepted)

Ask context-specific questions based on document type:

For PRD:

question: "Who are the primary users for this feature?"
options:
  - label: "End users"
    description: "Regular users of the application"
  - label: "Administrators"
    description: "Admin users with elevated access"
  - label: "Developers"
    description: "Internal development team"
  - label: "Multiple types"
    description: "I'll specify the user types"

For ADR:

question: "What constraints should I consider for this decision?"
options:
  - label: "Performance requirements"
    description: "Speed, latency, throughput constraints"
  - label: "Team expertise"
    description: "Team familiarity with technologies"
  - label: "Budget/cost"
    description: "Financial or resource constraints"
  - label: "Timeline"
    description: "Delivery deadline constraints"
  - label: "All of the above"
    description: "Consider all constraint types"

For PRP:

question: "What's the priority and scope for this implementation?"
options:
  - label: "High priority, narrow scope"
    description: "MVP implementation, ship quickly"
  - label: "High priority, full scope"
    description: "Complete implementation needed soon"
  - label: "Normal priority"
    description: "Standard development timeline"
  - label: "Exploratory"
    description: "Spike or proof of concept"

Step 3: Prepare Context Package

Extract from conversation:

  • Key requirements or decisions discussed
  • Options considered (for ADR)
  • Scope boundaries identified
  • User clarifications from Step 2
  • Related existing documents (check docs/prds/, docs/adrs/, docs/prps/)

For ADR: Infer Domain

Map discussion topics to ADR domains:

Topic KeywordsInferred Domain
Redux, Zustand, MobX, useState, signals, storestate-management
Prisma, Drizzle, PostgreSQL, MongoDB, ORM, databasedata-layer
REST, GraphQL, tRPC, OpenAPI, endpoints, APIapi-design
OAuth, JWT, auth0, session, tokens, loginauthentication
Vitest, Jest, Playwright, Cypress, coverage, testingtesting
Tailwind, styled-components, CSS modules, SCSSstyling
React, Vue, Svelte, Next.js, Nuxt, Angularfrontend-framework
Vite, Webpack, esbuild, turbopack, bundlerbuild-tooling
Docker, Kubernetes, Vercel, serverless, deploydeployment
Sentry, DataDog, logging, metrics, monitoringmonitoring

Include inferred domain in context package for /blueprint:derive-adr.

Step 4: Delegate to Documentation Agent

Launch appropriate documentation command:

For PRD:

Run /blueprint:derive-prd with context:
- Feature description from conversation
- User types identified
- Requirements enumerated
- Success criteria discussed

For ADR:

Run /blueprint:derive-adr with context:
- Decision being made
- Options compared
- Constraints identified
- Trade-offs discussed
- Inferred domain (for conflict analysis)

For PRP:

Run /blueprint:prp-create with context:
- Feature scope
- Implementation approach
- Test strategy discussed
- Files/components planned

Step 5: Report Result

After document creation:

  1. Show document location (docs/prds/, docs/adrs/, or docs/prps/)
  2. Summarize key sections created
  3. Suggest next steps:

- For PRD: "Run /blueprint:generate-rules to create implementation patterns" - For ADR: "Consider linking to related PRDs" - For PRP: "Run /blueprint:prp-execute when ready to implement"

Session Tracking

To avoid duplicate prompts, track detected topics:

Track declined topics: Don't re-prompt for explicitly declined documentation Track deferred topics: Re-prompt if significant new context is added (new requirements, new trade-offs, etc.) Track created documents: Don't re-prompt for topics with existing documents

Session tracking uses conversation memory - no persistent storage needed.

Integration with Blueprint Commands

Document detection integrates with existing commands:

Detection TypeCommand TriggeredDocument Location
PRD/blueprint:derive-prddocs/prds/{feature-name}.md
ADR/blueprint:derive-adrdocs/adrs/{number}-{title}.md
PRP/blueprint:prp-createdocs/prps/{feature-name}.md

Configuration

Document detection is controlled by manifest flag:

{
  "structure": {
    "has_document_detection": true
  }
}

Enable during /blueprint:init or /blueprint:upgrade.

False Positive Prevention

To minimize interruptions:

  1. Require high confidence (>= 0.7) before prompting
  2. Don't prompt on vague statements:

- "We might need auth" (< 0.7) - "Maybe we should use Postgres" (< 0.7)

  1. Don't re-prompt for same topic in same session
  2. Respect user choice: "No, just continue" stops all prompts for that topic

Quick Reference

DocumentKey TriggersConfidence Threshold
PRDFeature descriptions, user stories, requirements lists>= 0.7
ADRTechnology comparisons, trade-off discussions, "why" questions>= 0.7
PRPImplementation intent, file planning, specific feature scope>= 0.7
User ResponseAction
"Yes, create"Gather clarification, delegate to command
"Not now"Track topic, re-prompt if expanded
"No, continue"Mark declined, never re-prompt

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.57%
按下载量换算20

Claude

31.48%
按下载量换算20

Cursor

18.72%
按下载量换算12

Gemini CLI

8.54%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills