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

cf-ask

Skill10 starsChanged 7 days agoMITView on GitHub

Use when the user asks what their own notes say, or wants something found in them. Answers using ONLY what they say, citing each claim with [[path#Heading]] checked by tools/ask.py; says so when they do not. TRIGGERS - "what do my notes say about X", "ask the vault", "look it up in my notes". Do NOT trigger for code or world questions, writing notes, or deciding between paths. OPTIONAL MODE - "--try-first" asks for the user's own attempt first.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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. Distinctive:

    Off by default: When the user does not ask for it, nothing below changes anything above.

    line 29
  5. Distinctive:

    Do steps 1 to 3 (rewrite, search, read and discard) silently.

    line 35
  6. Distinctive:

    Ask once: "Write what you remember, in your own words.

    line 36
  7. Very specific:

    Do steps 4 to 6 as usual (answer from the kept passages, run cite, deliver).

    line 38
  8. Distinctive:

    After the delivered answer, add a short comparison, built only from the answer you just checked:

    line 39
  9. Distinctive:

    If the user gave a confidence, repeat it next to the result in one line (for example: "you said 70.

    line 43
  10. Distinctive:

    If the vault does not cover the question (rule 5), say so right after the attempt and skip the comparison.

    line 44
  11. Distinctive:

    Read-only, as always: the comparison stays in the chat.

    line 45
  12. Very specific:

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

    line 66
  13. Distinctive:

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

    line 71
  14. Distinctive:

    Write a conclusion about the user that no note states.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

cf-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. Writes one line, and only that. The one thing this skill writes in vault/ is the log line that cite --log appends to vault/memory/ask-log.jsonl: the date and the cited notes, never the question (it can hold something private). 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.

Optional mode: try first (--try-first)

Off by default. When the user does not ask for it, nothing below changes anything above.

Trigger: the user writes /cf-ask --try-first <question>, or says "let me try first" / "me deixa tentar primeiro".

Why it exists: reading an answer you did not first try to recall feels like learning and teaches less than trying first (retrieval practice, in docs/). Use it for questions the user wants to learn, not to look up.

  1. Do steps 1 to 3 (rewrite, search, read and discard) silently. Do NOT show a passage, a title or a hint yet.
  2. Ask once: "Write what you remember, in your own words. A few lines is enough. Optional: how sure are you, 0 to 100?" Then STOP and wait for the reply.
  3. "I do not remember" or "skip" counts as an attempt. Go on, without comment.
  4. Do steps 4 to 6 as usual (answer from the kept passages, run cite, deliver). Rules 1 to 6 still hold.
  5. After the delivered answer, add a short comparison, built only from the answer you just checked:
    • Matched: what the user said that the passages support, with the citation.
    • Missing from your attempt: what the passages say that the user did not mention, with the citation.
    • Not in the vault: what the user said that no retrieved passage covers. Say "not in the vault", never "wrong": the vault may simply not have it.
    • If the user gave a confidence, repeat it next to the result in one line (for example: "you said 70; you matched 2 of 3 points"). Do not grade the person.
  6. If the vault does not cover the question (rule 5), say so right after the attempt and skip the comparison.
  7. Read-only, as always: the comparison stays in the chat.

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> --log   # rc=0 all exist, rc=1 some do not, rc=3 NOT_VERIFIED

--log records the consultation (date and cited notes; the question is not stored) in vault/memory/ask-log.jsonl, and only when every citation exists. That is how a note that an answer used stops counting as one that sits still (python3 tools/usage.py). Without it the answer is still checked, but nobody can tell the note was used.

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.
  • In --try-first mode: show or paraphrase a retrieved passage before the user's attempt, or call an attempt "wrong".

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.