Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add JoaoVyttorFelix/lightweight-ai-development-agent-skills --skill "decision-lens"
Install specific skill from multi-skill repository
# Description
Detect and surface potential decision-making in work items, plans, diffs, docs, or summaries. Use to flag possible decisions neutrally without enforcing process.
# SKILL.md
name: decision-lens
description: Detect and surface potential decision-making in work items, plans, diffs, docs, or summaries. Use to flag possible decisions neutrally without enforcing process.
Decision Lens
Overview
Surface potential decisions early by spotting patterns that may constrain future options. Provide neutral, brief signals only. When a decision is intentionally recorded, it is expected to exist as a standalone decision artefact (one decision per artefact), not as an entry in a shared or append-only file.
Workflow
- Discovery first
- Inspect the repository for existing decision-record conventions (e.g., docs/adr/, architecture decision files, historical patterns).
- If conventions exist, align to them.
-
If none exist, propose a minimal default (e.g., docs/adr/ with one file per decision) as a suggestion only, and ask for confirmation before creating anything.
-
Scan for decision signals
- Changes to public interfaces or APIs
- Persistent data or schema changes
- Coupling that constrains future changes
- Irreversible or long-lived technology choices
-
Avoid flagging stylistic changes, refactors that preserve contracts, or purely local implementation details.
-
Classify neutrally
- Describe what appears to be changing.
- Avoid judging quality or correctness.
-
Avoid recommendations unless asked.
-
Surface the signal
- Use phrasing like: โThis might be a decision becauseโฆโ
-
If nothing stands out, say so plainly.
-
Mode and persistence
- Ephemeral mode (default): surface the decision signal only; no files are written.
- Persistent mode (opt-in): draft a minimal decision artefact stub when explicitly requested.
-
Never persist automatically or append decisions to shared logs like DECISIONS.md.
-
Optional decision artefact prompt
- If appropriate, suggest capturing the decision in a standalone artefact.
- Optionally draft a stub with:
- Context
- Decision question (not the answer)
- Default template (use only if no repository format exists):
-
ADR
: -
Context
- What problem or decision is being addressed?
-
Decision
- What is the decision being made?
-
Consequences
- What are the tradeoffs and follow-on effects?
-
-
The template is a default, not mandatory; align to existing ADR formats when present and do not auto-number.
-
Stop cleanly
- Present the decision signal (if any) and why it appears decision-like.
- If the human explicitly defers recording, acknowledge and stop without revisiting.
- Pause and await instruction to persist, revise, or discard.
- Do not follow up or persist state.
Output format
Return a brief advisory assessment with one of:
- No decision signal detected.
- Possible decision detected:
- What appears to be changing.
- Why this may constrain future work.
- What trade-off seems implicit (if any).
Optionally include a short ADR stub.
Refusals
Politely refuse requests to:
- Decide if an ADR is mandatory.
- Judge correctness or quality.
- Enforce architecture or approvals.
- Block execution or merges.
- Infer intent beyond observable signals.
Tone
Calm, neutral, precise. Advisory only. Prefer false negatives to false positives.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.