agentleFS
Arthuro0103Arthuro0103/cogiforge/.claude/skills/ask/SKILL.md

ask

Skill1 starsChanged 57 days agoMITView on GitHub

Answers a question about the user's own workbench using ONLY what the notes say, and cites every claim with [[path#Heading]] that a script then checks exists. Rewrites the question into 3-5 short queries, retrieves passages with tools/ask.py (local BM25, no API, no network), discards the irrelevant ones saying why, answers from what is left. If no passage supports the answer it says "the vault does not cover this". TRIGGERS - "ask the vault", "what do my notes say about X", "what do I know about X", "/ask <question>". Do NOT trigger for questions about code or the world outside the vault, for writing or editing notes, for deciding between paths, nor to get to know the user (that is onboard).

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit, discuss and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    edit

    根据用户要求增删 raw sources 或更新 wiki 内容

    Also in 3 projects that use this

  • shawnla90Skill

    discuss

    Decision-lock workflow for complex features. Asks targeted domain-specific questions, locks scope, and writes a CONTEXT.md that downstream skills consume. Auto-invoked when a feature touches 3+ files across 2+ concerns, or manually via /discuss.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 3 projects that use this

  • AnthropicSkill

    update

    Sync tasks and refresh memory from your current activity. Use when pulling new assignments from your project tracker into TASKS.md, triaging stale or overdue tasks, filling memory gaps for unknown people or projects, or running a comprehensive scan to catch todos buried in chat and email.

    Also in 3 projects that use this

  • sundial-orgSkill

    skill

    Find, install, create, improve, and publish AI agent skills through the Sundial ecosystem. Use when the user wants to find or search for skills, install a skill, create a new skill, improve or evaluate an existing skill, or publish a skill to Sundial Hub. Trigger phrases include "find a skill", "install skill", "create a skill", "make a skill", "improve this skill", "evaluate skill", "publish skill", "push skill", "search for skills".

    Also in 3 projects that use this

  • MicrosoftSkill

    report

    Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Answer only from retrieved passages: If you did not read it in a passage, you do not say it.

    line 16
  2. Very specific:

    Run cite before delivering: If it exits 1, remove or fix the failing citation and run it again.

    line 20
  3. Very specific:

    If it exits 3 (NOT_VERIFIED), say the citations could not be checked.

    line 21
  4. Very specific:

    Read the passages. For each one you drop, write one line saying why (off-topic, outdated, only shares a word).

    line 46
  5. Distinctive:

    Write the answer from the kept passages only, short, citing after each claim.

    line 51
  6. Distinctive:

    Write a conclusion about the user that no note states.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ask: answer from the notes, and prove the citations exist

Why it exists

A model that answers from memory about a person's notes invents plausible ones. The fix is to make the answer carry its sources, and to have a script (not the model) check that each source is real. You are the intelligence here: tools/ask.py only retrieves and verifies. No API, no network.

The rules

  1. Answer only from retrieved passages. If you did not read it in a passage, you do not say it.
  2. Never write about the user what they did not say (rule 2 of the repo). A note that says something about the user may be quoted as what the note says, never turned into a conclusion about them.
  3. Every claim is followed by [[path#Heading]], copied from the search output, never typed from memory.
  4. Run cite before delivering. If it exits 1, remove or fix the failing citation and run it again. If it exits 3 (NOT_VERIFIED), say the citations could not be checked; do not call the answer verified.
  5. No passage supports it, no answer. Say "the vault does not cover this", and what you searched for.
  6. Read-only. This skill writes nothing in vault/. The draft answer goes in a scratch file outside the repo.

Talk to the user in the language the user writes in. Never translate a quote.

The steps

1. Rewrite the question (you)

Turn it into 3-5 short queries: the key terms, a synonym, the same idea in the other language (Portuguese and English both work; accents do not matter). Short beats long: BM25 matches words, not meaning.

2. Search, once per query (command)

python3 tools/ask.py search "<query>" --top 8
python3 tools/ask.py search "<query>" --top 8 --links    # also follows [[wikilinks]] one hop, marked "via link"

Merge the results by id. A passage found by several queries is more likely relevant. Each result shows its id (the citation), the path note > section > subsection, and the text.

3. Read and discard (you)

Read the passages. For each one you drop, write one line saying why (off-topic, outdated, only shares a word). Keep the discard list; show it if the user asks. If a via link passage is what answers it, keep it.

4. Answer (you)

Write the answer from the kept passages only, short, citing after each claim. Where passages disagree, show both with their citations and do not pick one.

5. Check the citations (command)

python3 tools/ask.py cite <answer-file>        # rc=0 all exist, rc=1 some do not, rc=3 NOT_VERIFIED

Fix until rc=0. cite proves the citations exist, not that they say what you claim: that part is yours, so re-read each cited passage against its claim.

6. Deliver (you)

The answer, then one line: citations checked: <n>, rc=<rc>. If nothing supported it: "The vault does not cover this." plus the queries you tried.

Never

  • Cite a passage you did not read in the search output.
  • Fill a gap with general knowledge without marking it clearly as not from the vault.
  • Deliver an answer whose cite run failed or was not run.
  • Write a conclusion about the user that no note states.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.