Skip to content
Back to skills

Dynamic Programming Analysis

ASecurity

Break overwhelming problems, decisions, or plans into DP-style sub-problems (base cases, dependencies, reused parts) and solve bottom-up. Use when user says "I don't know where to start", "break this down", "what's the best way to...", or asks for a step-by-step plan, decision matrix, project roadmap, or architecture decomposition.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add Ronnasayd/aipp --skill dynamic-programming-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dynamic Programming Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dynamic Programming Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ronnasayd-dynamic-programming-analysis/badge)](https://www.skillsdirectory.com/skills/ronnasayd-dynamic-programming-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dynamic-programming-analysis
description: Break overwhelming problems, decisions, or plans into DP-style sub-problems (base cases, dependencies, reused parts) and solve bottom-up. Use when user says "I don't know where to start", "break this down", "what's the best way to...", or asks for a step-by-step plan, decision matrix, project roadmap, or architecture decomposition.
metadata:
  author: Ronnasayd Machado - github.com/Ronnasayd
  version: "1.1.0"
---

# Dynamic Programming Analysis

Breaks any complex problem into DP-style sub-problems: **optimal substructure** (solution depends on smaller solutions) + **overlapping sub-problems** (recurring parts, solve once, reuse). Applies to business, personal decisions, architecture, research, learning, projects.

## Protocol

| #   | Step                | Action                                                                              | Gate                                                  |
| --- | ------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------- |
| 1   | Define main problem | Restate precisely, final state, explicit/implicit constraints                       | —                                                     |
| 2   | Decompose           | Break into smaller parts; recurse until **base cases** (directly solvable)          | tree structure, see `references/response-template.md` |
| 3   | Identify overlaps   | Which sub-problems recur across branches? Which partial solutions reuse?            | mark explicitly — biggest efficiency win              |
| 4   | Resolution order    | Base cases first, then by dependency (prereq before dependent)                      | execution sequence                                    |
| 5   | Solve each          | Smallest → largest; compare options if multiple; note which parent problem it feeds | —                                                     |
| 6   | Compose             | Combine sub-solutions into original problem; validate fit                           | —                                                     |
| 7   | Verify              | Edge cases, external dependencies, optimal vs. good-enough                          | —                                                     |

Respond using the template in `references/response-template.md`.

## Adaptations by problem type

| Type                   | Sub-problem                | Base case                            | Overlap                                     | Composition               |
| ---------------------- | -------------------------- | ------------------------------------ | ------------------------------------------- | ------------------------- |
| Decision               | each criterion             | verifiable facts, not opinions       | criteria affecting multiple options         | decision table/matrix     |
| Planning/Project       | each deliverable/milestone | atomic task (1 person, 1 day)        | shared deps between phases                  | schedule/roadmap          |
| Technical/Architecture | each component/module      | primitive functions/services         | reusable utilities/patterns                 | integration diagram       |
| Learning               | each prerequisite concept  | needs-no-prerequisite knowledge      | fundamentals unlocking multiple topics      | ordered learning path     |
| Business/Strategy      | each strategic lever       | observable metrics, concrete actions | capabilities supporting multiple strategies | integrated strategic plan |

## Quality principles

- Granular: each sub-problem has a clear, direct answer.
- No pseudo-decomposition: genuinely break down, don't just rename the problem.
- Name dependencies explicitly (what depends on what).
- Bottom-up only — solving big before small causes rework.
- State reuse explicitly when one solution supports another.

## Reference files

- `references/response-template.md` — verbatim markdown response template + sub-problem tree text format.
- `references/example.md` — worked example (career transition into AI).

Files in this skill

  • SKILL.md4.1 KB
  • references/example.md933 B
  • references/response-template.md899 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.