feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
This commit is contained in:
1 parent
29632ff0ce
commit
f5d8f6f11b
124 files changed
+1250
-8138
No files matched your search
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: research
|
||||
description: MUST use before open searches - unknown locations or identifiers, behavior questions, cross-file tracing, and repository, filesystem, web, documentation, MCP, connector, or tool discovery. Not needed for direct reads of known paths or exact matches of known identifiers.
|
||||
description: MUST use before open searches - unknown locations or identifiers, behavior questions, cross-file tracing, and repository, filesystem, web, documentation, MCP, connector, or tool discovery - and when the user asks to verify claims or a decision depends on uncertain factual claims. Not needed for direct reads of known paths or exact matches of known identifiers.
|
||||
---
|
||||
|
||||
# Research
|
||||
@@ -9,7 +9,7 @@ description: MUST use before open searches - unknown locations or identifiers, b
|
||||
|
||||
Apply this skill before open searches, including file discovery, repository tracing, semantic queries, web searches, documentation fetches, and MCP or connector queries, during planning, implementation, debugging, review, and verification. Direct reads of known paths and exact matches of known identifiers need no skill load.
|
||||
|
||||
Load this skill before the first search; retain and apply it to every subsequent search. Reuse instructions already in context rather than rereading them for each call. Reading the instructions needed to enter this workflow is its bootstrap step.
|
||||
Load this skill before the first search; retain and apply it to every subsequent search. Reuse instructions already in context rather than rereading them for each call.
|
||||
|
||||
## Before each search
|
||||
|
||||
@@ -22,7 +22,7 @@ Load this skill before the first search; retain and apply it to every subsequent
|
||||
|
||||
## Repository
|
||||
|
||||
1. Locate the entry point. Known path, symbol, exact string, or configuration key: read it directly or search with `rg`. Unknown identifiers or behavior questions: run semantic retrieval first through `semantic-search` when installed.
|
||||
1. Locate the entry point. Known path, symbol, exact string, or configuration key: read it directly or search with `rg`. Unknown identifiers or behavior questions: run semantic retrieval first through `semantic-search` when installed. Skip it when a file listing of a small repository already shows the candidate files: read those directly.
|
||||
2. Trace the flow from entry point through shared helpers to observable behavior. Search callers and tests of every symbol you will change.
|
||||
3. Check related implementations, tests, configuration, and documentation. Note established conventions and where they differ across clients, shells, or platforms.
|
||||
4. Verify the version the repository uses before relying on external behavior.
|
||||
@@ -34,6 +34,15 @@ Load this skill before the first search; retain and apply it to every subsequent
|
||||
3. If results are missing, truncated, stale, or conflicting, refine the query or check another appropriate source. An empty search proves only that this query found nothing in its searched scope; for absence claims, also check other file types, ignored files, indirect references, and truncation.
|
||||
4. Carry the evidence into the next decision. Cite relevant paths, symbols, or direct sources in findings; distinguish confirmed facts, inference, and unresolved questions.
|
||||
|
||||
## Verifying claims
|
||||
|
||||
When the user asks to verify claims or a decision depends on uncertain factual claims:
|
||||
|
||||
1. Break the statement into atomic claims that can be checked independently.
|
||||
2. Check each against the evidence closest to the fact: current source, executable output, authoritative documentation, primary research, or direct measurement. External technology claims go through `technical-research`'s verification checkpoint. Check dates, versions, and applicability when a claim can change over time.
|
||||
3. Explain conflicting evidence by scope or version instead of silently picking one side.
|
||||
4. Label each claim confirmed, contradicted, inferred, or unknown, with confidence proportional to the evidence. Absence of evidence does not make a claim false.
|
||||
|
||||
## Completion and failure
|
||||
|
||||
Finish when evidence answers the stated question or the remaining gap is explicit. Scale the investigation to the question without skipping the gate, and continue authorized work once its research questions are answered. If a required skill or search tool is unavailable, report the limitation, preserve these research checks, and use only an authorized fallback. Never silently bypass the gate or present an unverified claim as established.
|
||||
@@ -80,6 +80,48 @@
|
||||
"Deletes only after the research confirms no remaining usages, or reports the remaining usages"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"prompt": "Before I send this to the architecture board, verify it: \"PostgreSQL 16 supports logical replication from standby servers, our production cluster runs PostgreSQL 16.2, and our replica lag has never exceeded 2 seconds.\" Our infra repo has `terraform/rds.tf` with `engine_version = \"15.6\"` and we have Grafana dashboards for the last 30 days only.",
|
||||
"expected_output": "Should break the statement into atomic claims: (1) PG 16 supports logical replication from standbys, (2) production runs 16.2, (3) replica lag never exceeded 2 seconds. Should verify claim 1 via the technical-research verification checkpoint (Context7 then official PostgreSQL docs/release notes). Claim 2 is contradicted by terraform showing 15.6 (with a note that the deployed state might differ from the repo). Claim 3 can be at most partially supported: 30 days of data cannot establish 'never', so it is inferred or unknown, not confirmed or contradicted. Each claim returned with evidence and a label of confirmed, contradicted, inferred, or unknown.",
|
||||
"assertions": [
|
||||
"Splits the statement into three separate atomic claims",
|
||||
"Applies technical-research or Context7 and official PostgreSQL documentation for the logical replication claim",
|
||||
"Labels the production version claim as contradicted citing engine_version 15.6 in terraform/rds.tf",
|
||||
"Notes that the repository value may differ from the deployed state, or verifies the deployed state",
|
||||
"Labels the never-exceeded-2-seconds claim as unknown or inferred because only 30 days of data exist",
|
||||
"Uses only the labels confirmed, contradicted, inferred, or unknown",
|
||||
"Provides evidence for each claim's conclusion"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"prompt": "Check this claim from our README: \"The CLI supports a `--dry-run` flag on every subcommand.\" I grepped `src/cli/` for `dry-run` and found it in `deploy.ts` and `migrate.ts` but not in `rollback.ts`. So the README is false, right?",
|
||||
"expected_output": "Should prefer the source closest to the fact, such as running each subcommand with --help or inspecting the shared argument parser, since the flag might be defined globally or in a shared options module. A grep miss in rollback.ts is absence of evidence, not proof the flag is unsupported. Should label the claim based on direct evidence: contradicted only if the actual CLI rejects or lacks the flag for a subcommand; otherwise unknown or inferred. Should list subcommands checked.",
|
||||
"assertions": [
|
||||
"Does not conclude the claim is false solely because grep found no match in rollback.ts",
|
||||
"Checks for a shared or global option definition, or runs the CLI help or command directly",
|
||||
"Enumerates the subcommands that were checked",
|
||||
"Labels the claim confirmed, contradicted, inferred, or unknown based on direct evidence",
|
||||
"Explains the evidence behind the label"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"prompt": "Two sources disagree. The vendor blog post (2022) says \"Feature X rate limit is 100 requests/minute\"; the current official API reference says 600 requests/minute for the Pro plan and 100 for Free. Our team is on Pro. What's our rate limit? Please verify.",
|
||||
"expected_output": "Should compare the conflicting evidence and explain the difference in scope and date (blog is older and/or refers to Free tier) rather than silently picking one. Should prefer the current official reference as the source closest to the fact, check its applicability to the Pro plan, and label the 600/min claim as confirmed for Pro (with the source) while noting the plan assignment itself should be confirmed. Should return each claim with evidence and conclusion.",
|
||||
"assertions": [
|
||||
"Explicitly addresses the conflict between the blog post and the API reference",
|
||||
"Explains the discrepancy by date or plan scope rather than silently choosing one",
|
||||
"Prefers the current official API reference over the 2022 blog post",
|
||||
"Applies the Pro plan limit of 600 requests per minute with its source",
|
||||
"Notes that the team's Pro plan assignment is a separate claim to confirm, or labels it accordingly",
|
||||
"Uses a confidence label for each claim"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
name: semantic-search
|
||||
description: MUST apply before open repository searches - run semantic retrieval first for unknown identifiers and behavior questions. Not needed for known paths, symbols, or exact strings, which use direct reads or rg.
|
||||
description: Use from the repository route of `research` to run semantic retrieval first for unknown identifiers and behavior questions. Not needed for known paths, symbols, or exact strings, which use direct reads or rg.
|
||||
---
|
||||
|
||||
# Semantic Search
|
||||
|
||||
Search the current Git repository, plus the user's registered QMD collections, by meaning. QMD runs locally with Qwen3-Embedding-4B, Qwen3-Reranker-4B, and QMD Query Expansion 1.7B; a background daemon keeps them loaded.
|
||||
Search the current Git repository, plus the user's registered QMD collections, by meaning. QMD runs its embedding, reranking, and query expansion models locally; a background daemon keeps them loaded.
|
||||
|
||||
## When
|
||||
|
||||
@@ -32,7 +32,7 @@ Output: JSON list of `{path, line, score, snippet}`, best first. Repository path
|
||||
|
||||
## Coverage
|
||||
|
||||
The index skips git-ignored files, npm and pnpm lockfiles, minified `*.min.js` bundles, and file types outside its mask (for example images, binaries, and `.txt`). An empty or irrelevant result is not proof of absence; confirm absence with `rg`.
|
||||
The index skips git-ignored files, npm and pnpm lockfiles, minified `*.min.js` bundles, and file types outside its mask (for example images, binaries, and `.txt`). An empty or irrelevant result is not proof of absence. Confirm absence with `rg -uu` (or `rg --no-ignore`): default `rg` also skips ignored files, so it misses the same files as the index.
|
||||
|
||||
## Failure
|
||||
|
||||
|
||||
@@ -41,12 +41,12 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"prompt": "Where does this script decide the output file name? (Note: semantic search returned one hit, qmd://notes/naming.md, and the repository has only three files: README.md, convert.py, and config.yml.)",
|
||||
"expected_output": "The repository is small and its file listing already shows the candidate, so convert.py can be read directly. If the qmd:// hit is relevant, it is read with the documented --get command rather than as a local path. Answers from the verified current file.",
|
||||
"prompt": "Where does this script decide the output file name? (Note: the repository has only three files: README.md, convert.py, and config.yml.)",
|
||||
"expected_output": "No search has run yet. The repository is small and its file listing already shows the candidate files, so semantic search is skipped and convert.py (and config.yml if needed) is read directly. Answers from the verified current file.",
|
||||
"assertions": [
|
||||
"Reads convert.py directly instead of relying on another semantic search",
|
||||
"Does not try to open qmd://notes/naming.md as a local file path",
|
||||
"Uses qmd-search.mjs --get if it reads the qmd:// hit",
|
||||
"Does not run the qmd-search command",
|
||||
"Reads convert.py directly",
|
||||
"Checks config.yml if convert.py reads the name from configuration",
|
||||
"Cites the verified file and line"
|
||||
],
|
||||
"files": []
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: technical-research
|
||||
description: MUST apply Context7 checkpoints in planning, implementation, and verification whenever external technology behavior matters; also before answers, reviews, debugging, configuration, upgrades, and EVERY external technology lookup, including familiar APIs and follow-ups.
|
||||
description: MUST apply Context7 checkpoints in planning, implementation, and verification whenever external technology behavior matters; also before answers, reviews, debugging, configuration, upgrades, and EVERY external technology lookup, including familiar APIs and follow-ups. Not needed for pure repository facts, prose-only edits without technical claims, or behavior fully established by local code.
|
||||
---
|
||||
|
||||
# Technical Research
|
||||
@@ -11,6 +11,8 @@ Apply `research` and this skill whenever external technology behavior affects th
|
||||
|
||||
Use Context7 first for each relevant external library, framework, SDK, API, tool, or platform question, before relying on its behavior. Trigger automatically; the user need not say "use Context7". Apply the gate to follow-up questions and newly introduced dependencies too.
|
||||
|
||||
Standards, specifications, and guidance documents (such as WCAG, RFCs, NIST, OWASP cheat sheets, MDN guides, and vendor best-practice pages) go directly to their official source; Context7 is optional for them because it mainly indexes code and API documentation.
|
||||
|
||||
Pure repository facts, prose-only edits without technical claims, and behavior already established entirely by local code need no external query. Evidence already retrieved and verified in this task may be reused only for the same behavior question, technology, version, and relevant environment; recheck these conditions before reuse. A new assumption, changed version, or contradictory result requires a new lookup.
|
||||
|
||||
## Mandatory phase checkpoints
|
||||
@@ -25,11 +27,11 @@ Carry concise evidence in the existing plan, task notes, or handoff: behavior cl
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Identify the behavior to verify. For repository work, inspect manifests, lockfiles, imports, and configuration through the repository route of `research` to establish the technology and actual version first. Distinguish installed and proposed target versions. If unknown, state that gap; do not assume latest.
|
||||
2. Select the configured route under the global tool instructions: MCPorter for a server registered there, or the selected native plugin's tools. Discover the tool schema once per route in the task; rediscover only if the route or schema changes or a schema error occurs. If that route is unavailable, report it and use the documented source fallback below; do not silently switch transports or install anything.
|
||||
1. Identify the behavior to verify. For repository work, inspect manifests, lockfiles, imports, and configuration through the repository route of `research` to establish the technology and actual version first. Distinguish installed and proposed target versions. If unknown, state that gap; do not assume latest. For any claim about the latest, current, or newest version, compare today's date with the model's knowledge cutoff and check the versions actually available (the version list Context7 returns, release notes, or the package registry) before stating it; never present the version known at training time as current.
|
||||
2. Select the configured route under the global tool instructions: MCPorter for a server registered there, or the selected native plugin's tools. Discover the tool schema once per route in the task; rediscover only if the route or schema changes or a schema error occurs. If the `mcporter` command is not found, call it by its full path in the npm global directory (`npm prefix -g`; on Windows `%APPDATA%\npm\mcporter.cmd`, elsewhere `<prefix>/bin/mcporter`) and report the PATH gap once. If the route is still unavailable, report it and use the documented source fallback below; do not silently switch transports or install anything.
|
||||
3. Call `resolve-library-id` with the official technology name and a focused question. Select by identity, authoritative source, relevant coverage, and available version, not ranking alone. Skip resolution only when the user supplies the exact Context7 library ID or a verified matching ID is already available in this task. Use a returned version-specific ID when it matches the required version; never invent IDs or versions.
|
||||
4. Call `query-docs` with that ID and one concrete behavior question. Check whether the returned content actually supports the intended answer or implementation for the required version. A successful call, benchmark score, or plausible snippet alone is insufficient.
|
||||
5. Inspect the linked primary documentation or exact-version source for the claims being used. Verify identity, version, and relevant context; use release notes for changed behavior. Reuse already inspected matching primary-source content instead of fetching it again. Resolve contradictions before relying on the result. Context7 retrieves evidence; it does not replace source verification.
|
||||
5. Inspect the linked primary documentation or exact-version source for the claims being used. Verify identity, version, and relevant context; use release notes for changed behavior. Reuse already inspected matching primary-source content instead of fetching it again. When the Context7 content itself quotes and cites an exact-version primary source (official documentation, release notes, or source at the required version), it counts as this check for low-risk claims, so one fetch is enough; fetch the primary source separately for security, data-loss, or breaking-change claims. Resolve contradictions before relying on the result. Beyond that case, Context7 retrieves evidence; it does not replace source verification.
|
||||
6. Compare only viable options against compatibility, security, maintenance, and the user's constraints. Separate established facts from inference. Cite the original sources and applicable versions; state material gaps and any fallback. Continue authorized work once the behavior is supported.
|
||||
|
||||
## Calls and fallback
|
||||
|
||||
@@ -42,6 +42,42 @@
|
||||
"Marks any option mapping it could not verify as unverified"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"prompt": "Which file in this repo registers the `/healthz` route, and what status code does our handler return?",
|
||||
"expected_output": "This is a pure repository fact fully established by local code. Should locate and read the handler and answer from it. Should not call Context7 or fetch external documentation.",
|
||||
"assertions": [
|
||||
"Answers from the repository file that registers the route",
|
||||
"Cites the file path and the status code found in the handler",
|
||||
"Does not call resolve-library-id or query-docs",
|
||||
"Does not fetch external documentation"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"prompt": "Earlier in this task you checked Context7 and the React 18.3 docs and confirmed that `useEffect` cleanup runs before the effect re-runs. Our package.json still pins react 18.3.1. Now write the cleanup for the polling effect in `usePolling.ts` using that same behavior.",
|
||||
"expected_output": "The evidence already gathered in this task matches the same behavior question, technology, version, and environment, so it can be reused. Should recheck the installed version, then implement without a new Context7 lookup, citing the earlier evidence.",
|
||||
"assertions": [
|
||||
"Confirms the installed React version still matches 18.3",
|
||||
"Reuses the earlier evidence instead of repeating the Context7 lookup",
|
||||
"Cites the earlier source used for the cleanup behavior",
|
||||
"Does not claim a new Context7 call was made"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"prompt": "Context7 says `requests` 2.32 verifies TLS certificates against the system store by default, but the requests 2.32 release notes say it uses the bundled certifi store. Our lockfile pins requests 2.32.3. Which is it?",
|
||||
"expected_output": "Context7 and the primary source conflict. Should not pick one silently. Should check the exact-version primary source (release notes or the 2.32.3 source), explain the conflict by version or scope, and rely on the primary source. If it cannot resolve the conflict, should mark the claim unverified.",
|
||||
"assertions": [
|
||||
"Explicitly reports the conflict between Context7 and the release notes",
|
||||
"Checks the exact-version primary source for requests 2.32.3",
|
||||
"Explains the conflict by version or scope rather than silently choosing",
|
||||
"Bases the answer on the primary source or marks the claim unverified"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user