Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

complexity-assessment复杂性评估

Agent Skill

complexity-assessment 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,730

周安装

70

GitHub Stars

25

下载量

543
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill complexity-assessment

简介

complexity-assessment 评估任务真实复杂度以匹配合适工作流程。

  • 强调准确性优先于速度,避免错误分类导致实施失败。
  • 适用于需求模糊时确定验证深度和 QA 策略选择。
  • 需区分明显简单修改与需要深度分析的复杂任务。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Complexity Assessment Skill

Overview

Analyze a task description and determine its true complexity to ensure the right workflow and validation depth are selected. Accuracy over speed - wrong complexity means wrong workflow means failed implementation.

Core principle: Accuracy over speed. Wrong complexity = wrong workflow = failed implementation.

When to Use

Always:

  • Before planning any new task
  • When requirements are gathered but approach unclear
  • When determining validation depth for QA

Exceptions:

  • Obvious simple fixes (typos, color changes)
  • Tasks where complexity is explicitly specified

Iron Laws

  1. NEVER begin planning without complexity assessment — wrong complexity tier = wrong workflow = failed implementation; always assess first, then select the appropriate workflow phases and validation depth.
  2. ALWAYS be conservative when uncertain — go higher — underestimating complexity is more dangerous than overestimating; a COMPLEX task mis-classified as STANDARD skips security review, architecture design, and comprehensive testing.
  3. ALWAYS count affected files before assigning a tier — gut-feel estimates are unreliable; scan the codebase to count files actually touched by the change before assigning SIMPLE/STANDARD/COMPLEX/EPIC.
  4. ALWAYS flag unfamiliar technologies for research — unknown tech has hidden complexity; mark any unfamiliar framework, library, or service as requiring research before proceeding with the complexity estimate.
  5. NEVER let the user's casual language lower the tier — "just a quick fix" or "small change" reflects the user's perception, not the actual technical scope; assess objectively regardless of how it is described.

Workflow Types

Determine the type of work being requested:

FEATURE

  • Adding new functionality to the codebase
  • Enhancing existing features with new capabilities
  • Building new UI components, API endpoints, or services
  • Examples: "Add screenshot paste", "Build user dashboard", "Create new API endpoint"

REFACTOR

  • Replacing existing functionality with a new implementation
  • Migrating from one system/pattern to another
  • Reorganizing code structure while preserving behavior
  • Examples: "Migrate auth from sessions to JWT", "Refactor cache layer"

INVESTIGATION

  • Debugging unknown issues
  • Root cause analysis for bugs
  • Performance investigations
  • Examples: "Find why page loads slowly", "Debug intermittent crash"

MIGRATION

  • Data migrations between systems
  • Database schema changes with data transformation
  • Import/export operations
  • Examples: "Migrate user data to new schema", "Import legacy records"

SIMPLE

  • Very small, well-defined changes
  • Single file modifications
  • No architectural decisions needed
  • Examples: "Fix typo", "Update button color", "Change error message"

Complexity Tiers

SIMPLE

  • 1-2 files modified
  • Single service/area
  • No external integrations
  • No infrastructure changes
  • No new dependencies
  • Examples: typo fixes, color changes, text updates, simple bug fixes

STANDARD

  • 3-10 files modified
  • 1-2 services/areas
  • 0-1 external integrations (well-documented, simple to use)
  • Minimal infrastructure changes (e.g., adding an env var)
  • May need some research but core patterns exist
  • Examples: adding a new API endpoint, creating a new component

COMPLEX

  • 10+ files OR cross-cutting changes
  • Multiple services/areas
  • 2+ external integrations
  • Infrastructure changes (Docker, databases, queues)
  • New architectural patterns
  • Greenfield features requiring research
  • Examples: new integrations (Stripe, Auth0), database migrations, new services

Workflow

Phase 1: Load Requirements

Read the requirements document:

# Read the requirements file
cat .claude/context/requirements/[task-name].md

Extract:

  • task_description: What needs to be built
  • workflow_type: Type of work (feature, refactor, etc.)
  • scope: Which areas are affected
  • requirements: Specific requirements
  • acceptance_criteria: How success is measured
  • constraints: Any limitations

Phase 2: Analyze the Task

Read the task description carefully. Look for:

Complexity Indicators (suggest higher complexity):

  • "integrate", "integration" - external dependency
  • "optional", "configurable", "toggle" - feature flags, conditional logic
  • "docker", "compose", "container" - infrastructure
  • Database names (postgres, redis, mongo) - infrastructure + config
  • API/SDK names (stripe, auth0, openai) - external research needed
  • "migrate", "migration" - data/schema changes
  • "across", "all services", "everywhere" - cross-cutting
  • "new service" - significant scope
  • ".env", "environment", "config" - configuration complexity

Simplicity Indicators (suggest lower complexity):

  • "fix", "typo", "update", "change" - modification
  • "single file", "one component" - limited scope
  • "style", "color", "text", "label" - UI tweaks
  • Specific file paths mentioned - known scope

Phase 3: Assess Dimensions

Scope Analysis

  • How many files will likely be touched?
  • How many areas are involved?
  • Is this a localized change or cross-cutting?

Integration Analysis

  • Does this involve external services/APIs?
  • Are there new dependencies to add?
  • Do these dependencies require research?

Infrastructure Analysis

  • Does this require Docker/container changes?
  • Does this require database schema changes?
  • Does this require new environment configuration?

Knowledge Analysis

  • Does the codebase already have patterns for this?
  • Will research be needed for external docs?
  • Are there unfamiliar technologies involved?

Risk Analysis

  • What could go wrong?
  • Are there security considerations?
  • Could this break existing functionality?

Phase 4: Determine Phases Needed

Based on your analysis, determine which phases are needed:

For SIMPLE tasks:

discovery → quick_spec → validation

(3 phases, no research, minimal planning)

For STANDARD tasks:

discovery → requirements → context → spec_writing → planning → validation

(6 phases, context-based spec writing)

For STANDARD tasks WITH external dependencies:

discovery → requirements → research → context → spec_writing → planning → validation

(7 phases, includes research for unfamiliar dependencies)

For COMPLEX tasks:

discovery → requirements → research → context → spec_writing → self_critique → planning → validation

(8 phases, full pipeline with research and self-critique)

Phase 5: Determine Validation Depth

Based on complexity and risk analysis, recommend validation depth:

Risk LevelWhen to UseValidation Depth
TRIVIALDocs-only, comments, whitespaceSkip validation entirely
LOWSingle area, < 5 files, no DB/API changesUnit tests only
MEDIUMMultiple files, 1-2 areas, API changesUnit + Integration tests
HIGHDatabase changes, auth/security, cross-serviceUnit + Integration + E2E + Security
CRITICALPayments, data deletion, security-criticalAll above + Manual review + Staging

Skip Validation Criteria (TRIVIAL): Set only when ALL are true:

  • Documentation-only changes (*.md, comments, docstrings)
  • OR purely cosmetic (whitespace, formatting, linting fixes)
  • No functional code modified
  • Confidence >= 0.9

Security Scan Required when ANY apply:

  • Authentication/authorization code touched
  • User data handling modified
  • Payment/financial code involved
  • API keys, secrets, or credentials handled
  • New dependencies with network access
  • File upload/download functionality

Phase 6: Output Assessment

Create the structured assessment:

# Complexity Assessment: [Task Name]

## Summary

| Dimension     | Assessment                                        |
| ------------- | ------------------------------------------------- |
| Complexity    | [simple/standard/complex]                         |
| Workflow Type | [feature/refactor/investigation/migration/simple] |
| Confidence    | [0.0-1.0]                                         |

## Reasoning

[2-3 sentence explanation]

## Analysis

### Scope

- Estimated files: [number]
- Estimated areas: [number]
- Cross-cutting: [yes/no]
- Notes: [brief explanation]

### Integrations

- External services: [list]
- New dependencies: [list]
- Research needed: [yes/no]
- Notes: [brief explanation]

### Infrastructure

- Docker changes: [yes/no]
- Database changes: [yes/no]
- Config changes: [yes/no]
- Notes: [brief explanation]

### Knowledge

- Patterns exist: [yes/no]
- Research required: [yes/no]
- Unfamiliar tech: [list]
- Notes: [brief explanation]

### Risk

- Level: [low/medium/high]
- Concerns: [list]
- Notes: [brief explanation]

## Recommended Phases

1. [phase1]
2. [phase2]
3. ...

## Validation Recommendations

| Setting          | Value                              |
| ---------------- | ---------------------------------- |
| Risk Level       | [trivial/low/medium/high/critical] |
| Skip Validation  | [yes/no]                           |
| Minimal Mode     | [yes/no]                           |
| Test Types       | [unit, integration, e2e]           |
| Security Scan    | [yes/no]                           |
| Staging Required | [yes/no]                           |

**Reasoning**: [1-2 sentences explaining validation depth]

## Flags

- Needs research: [yes/no]
- Needs self-critique: [yes/no]
- Needs infrastructure setup: [yes/no]

Decision Flowchart

START
  |
  +--> Are there 2+ external integrations OR unfamiliar technologies?
  |     YES -> COMPLEX (needs research + critique)
  |     NO
  |      |
  +--> Are there infrastructure changes (Docker, DB, new services)?
  |     YES -> COMPLEX (needs research + critique)
  |     NO
  |      |
  +--> Is there 1 external integration that needs research?
  |     YES -> STANDARD + research phase
  |     NO
  |      |
  +--> Will this touch 3+ files across 1-2 areas?
  |     YES -> STANDARD
  |     NO
  |      |
  +--> SIMPLE (1-2 files, single area, no integrations)

Verification Checklist

Before completing assessment:

  • Requirements document read completely
  • All complexity indicators identified
  • All simplicity indicators identified
  • Scope analyzed (files, areas, cross-cutting)
  • Integrations analyzed (external, dependencies)
  • Infrastructure needs assessed
  • Knowledge gaps identified
  • Risk level determined
  • Phases determined
  • Validation depth recommended

Common Mistakes

Underestimating Integrations

Why it's wrong: One integration can touch many files.

Do this instead: Flag research needs for any unfamiliar technology.

Ignoring Infrastructure

Why it's wrong: Docker/DB changes add significant complexity.

Do this instead: Check for infrastructure needs early.

Over-Confident

Why it's wrong: Rarely should confidence be above 0.9.

Do this instead: Be conservative. When in doubt, go higher complexity.

Integration with Other Skills

This skill works well with:

  • spec-gathering: Provides requirements for assessment
  • spec-writing: Uses assessment to determine spec depth
  • qa-workflow: Uses validation recommendations

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Assigning SIMPLE without file scanUnderestimates actual affected file countCount affected files before assigning tier
"Quick fix" language lowers tierUser perception ≠ technical scopeAssess objectively; ignore casual user framing
Ignoring integrations and external APIsExternal dependencies add risk and complexityList all external services/APIs in the assessment
Skipping research flag for unknown techUnfamiliar tech has invisible complexityFlag any unfamiliar technology for research
Not considering rollback complexityCOMPLEX/EPIC need recovery plansInclude rollback difficulty in complexity scoring

Memory Protocol

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

36.84%
按下载量换算200

Claude

30.76%
按下载量换算167

Cursor

18.3%
按下载量换算99

Gemini CLI

10.25%
按下载量换算56

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills