image
Add an image to a decision document — rename, move to docs/assets/, insert reference
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add an image to a decision document — rename, move to docs/assets/, insert reference
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create architecture decision records using MADR 4.0 format
Create effective D2/Mermaid diagrams optimized for terminal display
Create blameless incident reports and post-mortems
Complete Mermaid flowchart reference — shapes, edges, subgraphs, styling
Complete Mermaid sequence diagram reference — participants, arrows, activations, control flow
Create business opportunity documents with thorough questioning
| name | image |
| description | Add an image to a decision document — rename, move to docs/assets/, insert reference |
Add an image to a decision document. Handles renaming, moving to docs/assets/, and inserting the markdown reference.
Identify the image source: The user may paste an image (saved to a temp path), provide a file path, or provide a URL.
Determine the target document: Ask which document (e.g. ADR-001, OPP-002) the image belongs to, if not obvious from context.
Name the image file: Use a descriptive, kebab-case name based on content:
architecture-overview.pngincident-timeline.pngdeployment-flow.svg{doc-id-lowercase}-{description}.{ext} e.g. adr-001-architecture-overview.pngEnsure docs/assets/ exists:
mkdir -p docs/assets
Move/copy the image:
cp /path/to/source/image.png docs/assets/adr-001-architecture-overview.png
Insert markdown reference in the target document using dg set:
dg set ADR-001 --section "Context and Problem Statement" --append ''
Or for documents that reference from project root:

Validate:
dg validate
docs/assets/../assets/filename.pngdocs/assets/filename.pngdg validate will flag images stored outside docs/assets/ (error C002)