@olegkoval/agent-skills 1.94.1 → 1.94.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/prompts/promptctl.prompt.md +12 -3
- package/.kiro/steering/promptctl.md +12 -3
- package/.windsurf/rules/promptctl.md +12 -3
- package/adapters/claude/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/package.json +1 -1
- package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/plugins/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/plugins/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/plugins/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# debug-error-context.yaml
|
|
2
|
+
#
|
|
3
|
+
# Debug template that provides full error context to an LLM.
|
|
4
|
+
# Pass the failing file, the error message, and optionally a stack trace
|
|
5
|
+
# to get a structured root cause analysis and fix suggestions.
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# promptctl run debug-error-context --file=src/db.go \
|
|
9
|
+
# --error_message="nil pointer dereference" \
|
|
10
|
+
# --stack_trace="goroutine 1 [running]: main.handleRequest(...) db.go:42"
|
|
11
|
+
#
|
|
12
|
+
# Output: Structured JSON with root cause analysis and suggested fixes.
|
|
13
|
+
|
|
14
|
+
name: debug-error-context
|
|
15
|
+
description: Diagnose errors with full context - file, error message, and stack trace
|
|
16
|
+
|
|
17
|
+
variables:
|
|
18
|
+
- name: file
|
|
19
|
+
description: Path to the file where the error occurs
|
|
20
|
+
required: true
|
|
21
|
+
- name: error_message
|
|
22
|
+
description: The error message or exception text
|
|
23
|
+
required: true
|
|
24
|
+
- name: stack_trace
|
|
25
|
+
description: Stack trace or backtrace (if available)
|
|
26
|
+
default: ""
|
|
27
|
+
|
|
28
|
+
body: |
|
|
29
|
+
<context>
|
|
30
|
+
You are a senior software engineer debugging a production issue.
|
|
31
|
+
Analyze the error in the context of the source code and provide
|
|
32
|
+
a precise diagnosis with actionable fixes.
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<task>
|
|
36
|
+
The following error occurred in this file:
|
|
37
|
+
|
|
38
|
+
Error: {{.error_message}}
|
|
39
|
+
|
|
40
|
+
{{if .stack_trace}}
|
|
41
|
+
Stack trace:
|
|
42
|
+
{{.stack_trace}}
|
|
43
|
+
{{end}}
|
|
44
|
+
|
|
45
|
+
Analyze the source code below to determine the root cause.
|
|
46
|
+
</task>
|
|
47
|
+
|
|
48
|
+
<file name="{{.file_name}}" language="{{.file_ext}}">
|
|
49
|
+
{{.file_content}}
|
|
50
|
+
</file>
|
|
51
|
+
|
|
52
|
+
<output_contract>
|
|
53
|
+
Return strictly valid JSON. No explanations outside JSON.
|
|
54
|
+
</output_contract>
|
|
55
|
+
|
|
56
|
+
<required_structure>
|
|
57
|
+
{
|
|
58
|
+
"root_cause": "Clear explanation of why this error happens",
|
|
59
|
+
"failing_line": 0,
|
|
60
|
+
"error_type": "Category (e.g., null reference, type error, race condition, logic error)",
|
|
61
|
+
"contributing_factors": [
|
|
62
|
+
"Other code patterns that contribute to this bug"
|
|
63
|
+
],
|
|
64
|
+
"suggested_fixes": [
|
|
65
|
+
{
|
|
66
|
+
"description": "What to change",
|
|
67
|
+
"line": 0,
|
|
68
|
+
"before": "Current code snippet",
|
|
69
|
+
"after": "Fixed code snippet",
|
|
70
|
+
"confidence": "high | medium | low"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"prevention": [
|
|
74
|
+
"How to prevent similar bugs in the future"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
</required_structure>
|
|
78
|
+
|
|
79
|
+
<constraints>
|
|
80
|
+
- Focus on the most likely root cause first
|
|
81
|
+
- Show exact code changes (before/after) for each fix
|
|
82
|
+
- Rate confidence for each suggestion
|
|
83
|
+
- Keep fixes minimal - change only what is necessary
|
|
84
|
+
- If the stack trace points to a specific line, start analysis there
|
|
85
|
+
</constraints>
|