@workingpayload/agent-skills 1.0.0 → 2.0.0
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/APIForge/skill.md +150 -17
- package/AccessPlus/skill.md +122 -18
- package/AlgoMaster/skill.md +110 -17
- package/Architekt AI/skill.md +125 -17
- package/AuthCraft/skill.md +129 -17
- package/AutoScriptor/skill.md +122 -17
- package/BoilerCore/skill.md +121 -17
- package/BugHunter Pro/skill.md +118 -17
- package/ChangeScribe/skill.md +98 -17
- package/CodeSage/skill.md +148 -17
- package/CommitCraft/skill.md +97 -16
- package/CoverageMax/skill.md +145 -16
- package/CronGenius/skill.md +141 -16
- package/DataPolish/skill.md +126 -16
- package/DataWeaver/skill.md +135 -16
- package/DockMaster/skill.md +142 -16
- package/DocuGenie/skill.md +122 -16
- package/EdgeGuard/skill.md +144 -16
- package/EnvWizard/skill.md +140 -16
- package/ErrorMedic/skill.md +136 -16
- package/FeatureSmith/skill.md +123 -16
- package/FlexiLayout/skill.md +128 -16
- package/FlowTester/skill.md +138 -16
- package/FunctionForge/skill.md +120 -16
- package/InputShield/skill.md +128 -16
- package/IssueForge/skill.md +132 -16
- package/KubeCrafter/skill.md +133 -16
- package/LogicLens/skill.md +116 -16
- package/MockSmith/skill.md +130 -16
- package/ModelSensei/skill.md +122 -16
- package/PRMentor/skill.md +103 -32
- package/PerfDetective/skill.md +90 -32
- package/PipelinePro/skill.md +146 -32
- package/PolyglotShift/skill.md +94 -32
- package/PromptForge/skill.md +118 -32
- package/QueryPulse/skill.md +123 -32
- package/README.md +416 -329
- package/ReadMeCraft/skill.md +127 -32
- package/RefactorX/skill.md +84 -32
- package/RenderBoost/skill.md +148 -32
- package/SEOMancer/skill.md +140 -16
- package/ScrapeMaster/skill.md +157 -32
- package/SecretSniffer/skill.md +107 -16
- package/SecureScan/skill.md +114 -16
- package/ServiceSplitter/skill.md +137 -16
- package/SpeedSmith/skill.md +139 -16
- package/StackWise/skill.md +139 -16
- package/TaskOrchestrator/skill.md +119 -16
- package/TestCrafter/skill.md +142 -16
- package/TraceMind/skill.md +127 -16
- package/UISmith/skill.md +115 -16
- package/bin/cli.js +377 -0
- package/extension-extender/SKILL.md +122 -0
- package/fastapi-furious/SKILL.md +148 -0
- package/package.json +41 -28
- package/python-master/SKILL.md +108 -0
- package/react-ranger/SKILL.md +93 -0
- package/scripts/build_index.py +282 -0
- package/scripts/doctor.py +541 -0
- package/scripts/install.py +397 -0
- package/scripts/route.py +348 -0
- package/scripts/score.py +355 -0
- package/scripts/test_skill.py +473 -0
- package/scripts/validate.py +254 -0
- package/skills-routing.json +1131 -0
- package/skills.json +3261 -0
- package/Extension-Extender/SKILL.md +0 -41
- package/Extension-Extender/references/ui-guidelines.md +0 -26
- package/Fastapi-Furious/README.md +0 -16
- package/Fastapi-Furious/SKILL.md +0 -37
- package/Python-Master/README.md +0 -11
- package/Python-Master/SKILL.md +0 -37
- package/React-Ranger/README.md +0 -17
- package/React-Ranger/SKILL.md +0 -37
- package/cli.js +0 -181
- package/parse_skills.py +0 -44
- /package/{Extension-Extender → extension-extender}/assets/manifest.json +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.css +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.html +0 -0
- /package/{Extension-Extender → extension-extender}/assets/popup.js +0 -0
package/PromptForge/skill.md
CHANGED
|
@@ -1,32 +1,118 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: promptforge
|
|
3
|
-
description:
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# PromptForge
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## Workflow
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
---
|
|
2
|
+
name: promptforge
|
|
3
|
+
description: Craft, refine, and optimize LLM prompts using zero-shot, few-shot, Chain-of-Thought, ReAct, and structured output techniques. Use when a user needs to write a prompt, improve an existing prompt, or design a prompt pipeline for a specific AI task.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PromptForge
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
PromptForge engineers production-quality prompts by selecting the right prompting strategy, constraining outputs to a schema, and iterating based on failure analysis.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Clarify the Task Dimensions
|
|
15
|
+
|
|
16
|
+
Before writing a prompt, establish:
|
|
17
|
+
- **Model target**: GPT-4o, Claude 3.x, Gemini 1.5, Llama 3, Mistral? (Instruction format and context window differ.)
|
|
18
|
+
- **Output format**: free text, JSON, structured list, code, boolean?
|
|
19
|
+
- **Latency vs. quality trade-off**: single-shot response or multi-turn reasoning acceptable?
|
|
20
|
+
- **Failure modes to avoid**: hallucination, off-topic drift, unsafe content, truncated output?
|
|
21
|
+
|
|
22
|
+
### 2. Choose the Right Prompting Strategy
|
|
23
|
+
|
|
24
|
+
| Strategy | When to Use | Key Technique |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| **Zero-shot** | Simple classification, extraction, short generation | Clear task description + output format spec |
|
|
27
|
+
| **Few-shot** | Consistent formatting, domain-specific style | 3–5 labeled input/output examples in the prompt |
|
|
28
|
+
| **Chain-of-Thought (CoT)** | Multi-step reasoning, math, logic | "Think step by step" or explicit reasoning scaffold |
|
|
29
|
+
| **Tree of Thoughts (ToT)** | Complex problems with branching solution paths | Ask the model to generate and evaluate multiple candidate paths |
|
|
30
|
+
| **ReAct** | Tool-using agents, information retrieval loops | Alternate Thought → Action → Observation steps |
|
|
31
|
+
| **Self-consistency** | High-stakes decisions requiring reliability | Run the prompt N times, majority-vote the answer |
|
|
32
|
+
|
|
33
|
+
### 3. Structure the Prompt
|
|
34
|
+
|
|
35
|
+
Use this template as a baseline:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
[SYSTEM / CONTEXT]
|
|
39
|
+
You are <role>. <any persistent context or constraints>.
|
|
40
|
+
|
|
41
|
+
[TASK]
|
|
42
|
+
<Imperative instruction stating exactly what to do.>
|
|
43
|
+
|
|
44
|
+
[INPUT]
|
|
45
|
+
<Clearly labeled input variable(s)>
|
|
46
|
+
|
|
47
|
+
[CONSTRAINTS]
|
|
48
|
+
- Output must be <format>.
|
|
49
|
+
- Do not <list of prohibitions>.
|
|
50
|
+
- If <edge case>, respond with <fallback>.
|
|
51
|
+
|
|
52
|
+
[OUTPUT FORMAT]
|
|
53
|
+
Return a JSON object matching this schema:
|
|
54
|
+
{
|
|
55
|
+
"field1": "string",
|
|
56
|
+
"field2": ["array", "of", "strings"],
|
|
57
|
+
"confidence": "high | medium | low"
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Define Output Constraints
|
|
62
|
+
|
|
63
|
+
For structured outputs:
|
|
64
|
+
- Provide an explicit JSON schema or TypeScript type in the prompt.
|
|
65
|
+
- Use `response_format: { type: "json_object" }` (OpenAI) or `"response_mime_type": "application/json"` (Gemini) where available.
|
|
66
|
+
- For Claude: wrap instructions in XML tags (`<instructions>`, `<example>`) to improve parsing reliability.
|
|
67
|
+
- Always specify what to return when input is invalid or out of scope.
|
|
68
|
+
|
|
69
|
+
### 5. Set Temperature Guidance
|
|
70
|
+
|
|
71
|
+
- **0.0–0.2**: Factual extraction, classification, data parsing — deterministic outputs needed.
|
|
72
|
+
- **0.3–0.6**: Summarization, analysis, structured generation — some variation acceptable.
|
|
73
|
+
- **0.7–1.0**: Creative writing, brainstorming, ideation — diversity desired.
|
|
74
|
+
- For agents/tools using function calling, use temperature ≤ 0.2 to avoid erratic tool selection.
|
|
75
|
+
|
|
76
|
+
### 6. Adversarial Testing
|
|
77
|
+
|
|
78
|
+
Test the prompt against:
|
|
79
|
+
1. **Empty input** — does it fail gracefully or hallucinate?
|
|
80
|
+
2. **Adversarial input** — prompt injection attempts (`"Ignore previous instructions and..."`), jailbreak phrasing.
|
|
81
|
+
3. **Edge case inputs** — very long text, non-English text, ambiguous content.
|
|
82
|
+
4. **Out-of-scope requests** — does the model stay on task or drift?
|
|
83
|
+
|
|
84
|
+
Document each test case and expected vs. actual output.
|
|
85
|
+
|
|
86
|
+
### 7. Iteration Loop
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
Draft prompt → test on 5–10 representative inputs → identify failure pattern
|
|
90
|
+
→ add a constraint or example targeting that failure → retest
|
|
91
|
+
→ repeat until pass rate meets target (aim for ≥90% on test set)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 8. Deliver the Output
|
|
95
|
+
|
|
96
|
+
Provide:
|
|
97
|
+
1. Final prompt (system + user sections clearly labeled).
|
|
98
|
+
2. Prompting strategy chosen and why.
|
|
99
|
+
3. JSON schema or output format spec.
|
|
100
|
+
4. Temperature and any API parameter recommendations.
|
|
101
|
+
5. 3+ test cases with expected outputs.
|
|
102
|
+
6. Known limitations and when the prompt may fail.
|
|
103
|
+
|
|
104
|
+
## Additional Techniques
|
|
105
|
+
|
|
106
|
+
**Multi-modal prompting (image + text):** When the model accepts image inputs, describe what the model should extract or reason about from the image explicitly in the text prompt. Place the image reference before the question. Use `detail: "high"` for diagrams requiring fine-grained reading; `"low"` for thumbnails/icons to reduce token cost. Never assume the model will infer intent from the image alone.
|
|
107
|
+
|
|
108
|
+
**Prompt versioning and regression tracking:** Store prompts in version control (e.g., `prompts/classify_v3.txt`). On each model upgrade, re-run your test set and diff pass rates. Use a spreadsheet or tool like PromptLayer/LangSmith to log model version, prompt hash, temperature, and per-example outcomes. Flag regressions where pass rate drops > 5% between model versions.
|
|
109
|
+
|
|
110
|
+
**Function-calling / tool-use prompt format:** When using OpenAI function calling or Claude tool use, define the tool schema separately from the system prompt. Keep the system prompt focused on *when* to call tools, not how they work. Validate that the model's arguments match the JSON schema before executing the function. For multi-tool agents, list available tools with one-line descriptions in the system prompt so the model can select the right one.
|
|
111
|
+
|
|
112
|
+
## Edge Cases
|
|
113
|
+
|
|
114
|
+
**1. Context window overflow with few-shot examples.** If the prompt + examples + input exceeds the context limit, use dynamic few-shot selection: embed the examples, retrieve the top-k most similar to the current input at runtime (RAG-style example selection). Keep examples under 30% of total context budget.
|
|
115
|
+
|
|
116
|
+
**2. Model refuses or over-hedges on the task.** For tasks that trigger safety refusals, reframe the instruction in a clearly professional/technical context. Add a system prompt establishing the use case. If the model adds excessive disclaimers, add "Do not add warnings or disclaimers; the user is a professional in this domain" to the constraints.
|
|
117
|
+
|
|
118
|
+
**3. Inconsistent output format across runs.** If the model intermittently deviates from the JSON schema, add a validation step: parse the output and retry with the error appended to the prompt ("Your previous response was not valid JSON. The error was: <error>. Please retry.").
|
package/QueryPulse/skill.md
CHANGED
|
@@ -1,32 +1,123 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: querypulse
|
|
3
|
-
description:
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# QueryPulse
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## Workflow
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
---
|
|
2
|
+
name: querypulse
|
|
3
|
+
description: Analyze and optimize SQL query performance using EXPLAIN ANALYZE, index design, covering indexes, N+1 detection, and deadlock diagnosis across PostgreSQL and MySQL. Use when a user has a slow query, a deadlock, a missing index, or wants to understand a query execution plan.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# QueryPulse
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
QueryPulse diagnoses SQL performance problems using execution plan analysis, index theory, and engine-specific optimizations for PostgreSQL and MySQL.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Collect the Execution Plan
|
|
15
|
+
|
|
16
|
+
Always start with the actual (not estimated) plan:
|
|
17
|
+
|
|
18
|
+
**PostgreSQL:**
|
|
19
|
+
```sql
|
|
20
|
+
EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT) <your query>;
|
|
21
|
+
```
|
|
22
|
+
- `ANALYZE`: runs the query and shows actual row counts and timing.
|
|
23
|
+
- `BUFFERS`: shows cache hit vs. disk read ratio.
|
|
24
|
+
|
|
25
|
+
**MySQL / MariaDB:**
|
|
26
|
+
```sql
|
|
27
|
+
EXPLAIN FORMAT=JSON <your query>;
|
|
28
|
+
-- Or for actual execution stats (MySQL 8.0+):
|
|
29
|
+
EXPLAIN ANALYZE <your query>;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Ask for the full output, not a screenshot. Key fields to examine:
|
|
33
|
+
- `Seq Scan` / `ALL` type → full table scan, likely missing an index.
|
|
34
|
+
- `Rows` estimate vs. actual: large divergence → stale statistics; run `ANALYZE <table>` (Postgres) or `ANALYZE TABLE <table>` (MySQL).
|
|
35
|
+
- `cost` / `actual time`: find the most expensive node.
|
|
36
|
+
- `Buffers: shared hit/read`: low hit ratio → data not in cache, I/O bound.
|
|
37
|
+
|
|
38
|
+
### 2. Identify the Bottleneck Type
|
|
39
|
+
|
|
40
|
+
**Missing or unused index:**
|
|
41
|
+
- Look for `Seq Scan` on large tables or `Using filesort` / `Using temporary` in MySQL.
|
|
42
|
+
- Check existing indexes: `\d <table>` (psql) or `SHOW INDEX FROM <table>` (MySQL).
|
|
43
|
+
|
|
44
|
+
**Poor index selectivity:**
|
|
45
|
+
- An index on a boolean or low-cardinality column (e.g., `status IN ('active','inactive')`) may be ignored by the planner.
|
|
46
|
+
- Index selectivity = `COUNT(DISTINCT col) / COUNT(*)`. Aim for > 0.1 before indexing.
|
|
47
|
+
|
|
48
|
+
**N+1 query pattern:**
|
|
49
|
+
- Symptom: application executes hundreds of nearly identical queries differing only by a single ID.
|
|
50
|
+
- Fix: rewrite as a single `SELECT ... WHERE id = ANY($1)` (Postgres) or `SELECT ... WHERE id IN (...)` (MySQL) and fetch all rows at once, or use ORM eager loading (Django: `select_related`/`prefetch_related`; Rails: `includes`; Hibernate: `JOIN FETCH`).
|
|
51
|
+
|
|
52
|
+
**Deadlock:**
|
|
53
|
+
- PostgreSQL: check `pg_locks` and the server log for `deadlock detected`.
|
|
54
|
+
- MySQL: `SHOW ENGINE INNODB STATUS\G` — look for the `LATEST DETECTED DEADLOCK` section.
|
|
55
|
+
- Fix pattern: ensure all transactions acquire locks in the same order; use `SELECT ... FOR UPDATE SKIP LOCKED` for queue-style workloads.
|
|
56
|
+
|
|
57
|
+
### 3. Design the Index
|
|
58
|
+
|
|
59
|
+
**Basic B-tree index:**
|
|
60
|
+
```sql
|
|
61
|
+
CREATE INDEX CONCURRENTLY idx_orders_user_created
|
|
62
|
+
ON orders (user_id, created_at DESC);
|
|
63
|
+
```
|
|
64
|
+
Use `CONCURRENTLY` (Postgres) to avoid table lock on production.
|
|
65
|
+
|
|
66
|
+
**Covering index** (avoids heap fetch entirely):
|
|
67
|
+
```sql
|
|
68
|
+
-- Query: SELECT status, total FROM orders WHERE user_id = $1 AND created_at > $2
|
|
69
|
+
CREATE INDEX idx_orders_covering
|
|
70
|
+
ON orders (user_id, created_at DESC)
|
|
71
|
+
INCLUDE (status, total); -- Postgres 11+
|
|
72
|
+
```
|
|
73
|
+
In MySQL, covering indexes are standard B-trees — include all SELECT and WHERE columns.
|
|
74
|
+
|
|
75
|
+
**Partial index** (index only rows matching a condition):
|
|
76
|
+
```sql
|
|
77
|
+
CREATE INDEX idx_orders_pending
|
|
78
|
+
ON orders (created_at)
|
|
79
|
+
WHERE status = 'pending';
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**GIN index for full-text / JSONB (Postgres):**
|
|
83
|
+
```sql
|
|
84
|
+
CREATE INDEX idx_docs_fts ON documents USING gin(to_tsvector('english', body));
|
|
85
|
+
CREATE INDEX idx_meta_gin ON products USING gin(metadata); -- for JSONB @> queries
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 4. Engine-Specific Differences
|
|
89
|
+
|
|
90
|
+
| Feature | PostgreSQL | MySQL 8.0 |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| EXPLAIN actual stats | `EXPLAIN ANALYZE` | `EXPLAIN ANALYZE` (8.0+) |
|
|
93
|
+
| Concurrent index build | `CREATE INDEX CONCURRENTLY` | Online DDL (default) |
|
|
94
|
+
| Covering index syntax | `INCLUDE (cols)` | All columns in index |
|
|
95
|
+
| JSON indexing | GIN on JSONB | `JSON_EXTRACT` + generated column + index |
|
|
96
|
+
| Full-text search | `tsvector` + GIN | `FULLTEXT` index + `MATCH AGAINST` |
|
|
97
|
+
| Skip locked | `SELECT FOR UPDATE SKIP LOCKED` | `SELECT FOR UPDATE SKIP LOCKED` (8.0+) |
|
|
98
|
+
| Materialized views | Native | Not native; use a table + scheduled refresh |
|
|
99
|
+
|
|
100
|
+
### 5. Deliver the Output
|
|
101
|
+
|
|
102
|
+
Provide:
|
|
103
|
+
1. Annotated execution plan (highlight the slow node).
|
|
104
|
+
2. Root cause diagnosis (1–2 sentences).
|
|
105
|
+
3. `CREATE INDEX` statement or query rewrite (with `EXPLAIN` output showing improvement if possible).
|
|
106
|
+
4. `EXPLAIN ANALYZE` command to verify the fix.
|
|
107
|
+
5. Any follow-up: statistics refresh, application-level N+1 fix, connection pool settings.
|
|
108
|
+
|
|
109
|
+
### 6. Advanced Query Patterns
|
|
110
|
+
|
|
111
|
+
**CTE materialization (PostgreSQL 12+):** By default, CTEs in Postgres 12+ are not materialized — the planner can inline them like a subquery. Force materialization with `WITH cte AS MATERIALIZED (...)` when the CTE is expensive and referenced multiple times; use `NOT MATERIALIZED` to allow inlining when the planner is over-estimating CTE cost. Check `EXPLAIN` to see whether the CTE appears as a separate node or is inlined.
|
|
112
|
+
|
|
113
|
+
**Partitioned table optimization:** Always include the partition key in `WHERE` clauses so the planner performs partition pruning (skips irrelevant partitions). Verify pruning with `EXPLAIN` — look for `Append` nodes that list only the relevant child partitions. Create indexes on each partition separately; a global index on the parent table is not available in PostgreSQL range/list partitioning. Avoid `OR` conditions across the partition key — they suppress pruning.
|
|
114
|
+
|
|
115
|
+
**Replica vs. primary plan divergence:** Read replicas may have stale statistics (last `ANALYZE` ran on the primary; replica lag delays propagation). A query that runs fast on the primary can pick a bad plan on the replica. Run `ANALYZE` on the replica directly, or check `pg_stat_user_tables.last_analyze` per replica. For critical read paths, force a plan with `pg_hint_plan` or promote the replica's statistics refresh schedule.
|
|
116
|
+
|
|
117
|
+
## Edge Cases
|
|
118
|
+
|
|
119
|
+
**1. Statistics are stale — planner chooses a bad plan.** If estimated rows diverge wildly from actual rows, run `ANALYZE <table>` (or `VACUUM ANALYZE` to also reclaim dead tuples). For tables with highly skewed distributions, use `CREATE STATISTICS` (Postgres 10+) to capture column correlations.
|
|
120
|
+
|
|
121
|
+
**2. Index exists but is not used.** The planner may skip a valid index if: (a) the table is small enough that a seq scan is cheaper, (b) the query uses a function on the indexed column (`WHERE LOWER(email) = ...` bypasses a plain index — use a functional index: `CREATE INDEX ON users (LOWER(email))`), or (c) the index has bloat — `REINDEX CONCURRENTLY` to rebuild it.
|
|
122
|
+
|
|
123
|
+
**3. Query is fast in isolation but slow under concurrency.** Check for lock contention: `pg_stat_activity` + `pg_locks` join, or `SHOW PROCESSLIST` in MySQL. Solutions: shorter transactions, optimistic locking, row-level vs. table-level locks, or `SKIP LOCKED` queue patterns.
|