Langsung ke konten
Skillpedia
Pemrograman umum48k Β· #5097

logic-explain

Fungsinya

Alat ini menjelaskan cara kerja sepotong kode langkah demi langkah, dengan menunjukkan apa yang terjadi pada informasi ketika kode dijalankan dengan input tertentu.

Kapan dipakai

  • βœ“Saat Anda tidak mengerti mengapa kode menghasilkan hasil yang tidak diharapkan.
  • βœ“Saat ingin melihat bagaimana informasi berubah di dalam kode.
  • βœ“Saat Anda membutuhkan panduan rinci tentang eksekusi kode.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-explain/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-explain/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œJelaskan kode berikut dengan input ini: [kode] dan input: [input]”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menganalisis kode dan input yang diberikan. Setelah itu, alat ini merinci setiap langkah eksekusi, menjelaskan perubahan variabel, dan bagaimana kode berpindah antarbagian.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Logic-Lens β€” Execution Explain

When to Use

Use this skill when you need explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions). Trigger when the user is confused about behavior or asks why code produces X instead of Y β€” "walk me through...

Setup

Use lazy loading per ../_shared/common.md Β§13:

  1. Read ../_shared/common.md only for language, report header variants, scope routing, and loading budget.
  2. Read only the relevant step in logic-explain-guide.md as you reach it.
  3. Load ../_shared/semiformal-guide.md, ../_shared/semiformal-checklist.md, and ../_shared/report-template.md on demand when the current step needs them.

Note: logic-risks.md is intentionally skipped β€” logic-explain does not produce L-code findings, and Remedy is intentionally out of scope for this mode. If the trace reveals a bug, stop and recommend logic-review or logic-locate. When handing off, do not discard work already done β€” present the premises established and trace steps completed under a "Partial trace context (carry into next skill):" heading so the user can pass them directly to the follow-on skill.

Process

Step 0. Language + scope routing. Detect language per common.md Β§1. Confirm a single function + a single input scenario. If the user wants bug-finding without a scenario, hand off to logic-review.

Step 1. Entry point and scenario (guide Step 1) β€” name the function, the input scenario, and what the user is trying to understand.

Step 2. Build premises (guide Step 2) β€” resolve every non-obvious name, state the types of key variables at entry, note global/module state accessed.

Step 3. Produce step-by-step trace (guide Step 3) β€” numbered, interprocedural, active voice; cross function boundaries whenever relevant to the user's scenario. Keep the trace scenario-bound; do not branch into alternative paths unless they explain the user's confusion.

Step 4. Highlight non-obvious behavior (guide Step 4) β€” name resolutions, implicit coercions, hidden side effects; the "gotchas" the casual reader would miss.

Step 5. Summarize actual vs. assumed (guide Step 5) β€” one sentence each; this is the core value for the user.

Mode line in report: Execution Explain (Chinese: ζ‰§θ‘Œθ§£ι‡Š).

Note: Execution Explain is descriptive, not evaluative. Omit the Logic Score / Fault Confidence / Verdict line from the report header.

Example

User request:

Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions).

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Pertanyaan umum

Apa itu 'execution trace'?

Itu seperti buku catatan yang merekam setiap tindakan kode, dan menunjukkan kondisi informasi pada setiap momen.

Apa arti 'name resolution and type transitions'?

Artinya, alat ini menjelaskan apa yang dirujuk oleh setiap nama (variabel, fungsi) dan bagaimana tipe data (angka, teks) berubah selama eksekusi.

Apakah alat ini memperbaiki error pada kode?

Tidak, alat ini hanya menjelaskan cara kerja kode. Jika ditemukan error, alat ini mungkin menyarankan alat lain untuk memperbaikinya.

Detail

Deskripsi asli dari pembuat

Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions).

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#5097
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa