askill
analyze

analyzeSafety 95Repository

Deep analysis mode - thorough multi-phase investigation with expert consultation for complex problems requiring careful examination

3 stars
1.2k downloads
Updated 2/14/2026

Package Files

Loading files...
SKILL.md

Deep Analysis Mode

Agent Delegation

You MUST delegate system-wide dependency analysis and architectural mapping to the codebase_investigator sub-agent. For high-level design evaluations and technical trade-offs, consult the software-architect.

HARD CONSTRAINTS (NON-NEGOTIABLE)

  • READ-ONLY MODE — This skill is for analysis, not implementation
  • NO CODE WRITING — Do not write, edit, or modify any source code
  • NO IMPLEMENTATION — Do not implement features, fix bugs, or make changes
  • OUTPUT IS DOCUMENTATION — Your deliverable is analysis/plan documents only

If you find yourself wanting to write code, STOP. Analysis produces documents, not software.

When to Use This Skill

  • Before major refactoring or architectural changes
  • When evaluating unfamiliar code for risks or technical debt
  • During security or performance audits
  • When making build-vs-buy or technology decisions
  • To produce a documented assessment for stakeholder review
  • As the /analyze command to produce implementation plans for /implement

Workflow

Phase 1: Reconnaissance

Explore the target area to build context:

  1. Map the structure:

    • Identify relevant files, modules, and their relationships
    • Understand the dependency graph and data flow
  2. Find patterns:

    • Look for recurring code patterns (both good and concerning)
    • Identify conventions and deviations from them
  3. Gather context:

    • Review git history for recent changes and contributors
    • Check for related documentation, comments, or TODOs

Phase 2: Domain Analysis

Analyze the target across these dimensions:

DomainFocus Areas
ArchitectureSystem design, data flow, component dependencies
SecurityVulnerabilities, threat model, input validation
ReliabilityScalability, failure modes, error handling
PerformanceBottlenecks, complexity, resource usage
Code QualityPatterns, anti-patterns, maintainability

Phase 3: Deep Dive

Examine comprehensively:

  • Edge cases and potential failure modes
  • Performance implications under load
  • Security attack surface
  • Error handling completeness
  • Testability and test coverage gaps
  • Technical debt and maintenance burden

Phase 4: Synthesis

Combine findings into a structured report following the template in references/analysis-report-template.md.

The report should include:

  • Executive Summary - Key findings and top recommendation
  • Detailed Analysis - By domain (architecture, security, performance, code quality)
  • Issues Found - Prioritized as Critical (P0), High (P1), Medium (P2)
  • Recommendations - Immediate actions, short-term improvements, long-term considerations
  • Trade-offs - Analysis of different approaches with pros/cons

Analysis Focus Areas

AreaWhat to Examine
CorrectnessLogic errors, edge cases, assumptions
SecurityInput validation, auth, data protection
PerformanceComplexity, caching, resource usage
ReliabilityError handling, failure modes, recovery
MaintainabilityReadability, coupling, documentation
TestabilityCoverage, mocking, isolation

Implementation Plan Workflow

When using this skill to generate implementation plans for /implement:

Step 1: Scope Check (GATE)

After fetching the ticket, determine its type and scope:

  1. Check if Epic: Does it have child tickets/stories?
  2. Count children: How many child tickets exist?

Scope Guard

ConditionAction
Single ticket (story/task)Proceed with analysis
Epic with 1-3 childrenProceed — manageable scope
Epic with 4+ childrenSTOP — Scope too large

If scope is too large: Ask the user for confirmation before proceeding with large epics, recommending analysis of individual stories instead.

Step 2: Codebase Research

Research the implementation context for each ticket in scope to determine implementation order, parallelization opportunities, and shared concerns.

Step 3: Implementation Mapping

For each ticket, identify specific files to modify, functions/components to change, schema changes, and test files.

Step 4: Output - Implementation Plan

Produce a structured implementation plan using the following template:

# Implementation Plan: <ticket-id>

## Executive Summary
[Summary of scope and approach]

## Tickets in Scope
| ID | Title | Status | Dependencies | Parallelizable |
| -- | ----- | ------ | ------------ | -------------- |

## Implementation Phases
### Phase 1: <name>
**Tickets:** <list of ticket IDs>
#### Ticket <ID>: <title>
- **Work:** [Specific actions]
- **Files:** [Files to modify]
- **Verification:** [How to verify]

[Repeat for other phases]

## Risk Assessment
[Risks and mitigations]

Step 5: Save Plan (MANDATORY)

Plans MUST be saved using the Obsidian MCP tools (obsidian_create_note). Do NOT use local filesystem write tools.

Path Logic:

  1. Identify Project Name: Use the BEADS_PROJECT_NAME env var or the current directory name.
  2. Construct Path: working/<project-name>/plans/<ticket-id>-plan.md

Example: If project is beads-workflow and ticket is TASK-1, path is working/beads-workflow/plans/TASK-1-plan.md.


Constraints

  • Read-only — analyze code, do not modify it
  • Obsidian storage — implementation plans must be stored in the Obsidian vault
  • No implementation — produce plans, not code

Begin by performing reconnaissance on the target area before conducting domain analysis.

Remember: Your output is documentation. Do not write code.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 2/19/2026

High-quality analysis skill with excellent structure, clear workflow phases, and strong safety constraints. Well-organized with tables, templates, and explicit deliverables. Minor deduction for project-specific tool dependencies (Obsidian, BEADS_PROJECT_NAME) and misaligned tags that slightly reduce reusability. The skill is highly actionable and safe, emphasizing read-only analysis with clear gates for scope management."

95
92
55
78
90

Metadata

Licenseunknown
Version-
Updated2/14/2026
Publisherthoreinstein

Tags

ci-cdgithub-actionssecuritytesting