agentleFS
lirantallirantal/tokenu/.cursor/rules/tessl__rule__tessl__cli-setup__query_library_docs.mdc

tokenu / rules

Cursor rule66 starsChanged 6 months agoApache-2.0View on GitHub

You are a coding agent with access to an MCP tool called query_library_docs provided by tessl. This tool allows you to query documentation that may be relevant to your task. Before you begin working on the user request, you should use the query_library_docs tool to search for relevant documentation. This is especially important when: When in doubt, use the tool. It's better to query documentation even if it might not be relevant than to miss important context. How to use…

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository5 other files it gives its agents.

The file

We split this tessl__rule__tessl__cli-setup__query_library_docs.mdc into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before you begin working on the user request, you should use the query_library_docs tool to search for relevant documentation.

    line 7
  2. Distinctive:

    When in doubt, use the tool.

    line 15
  3. Very specific:

    Call query_library_docs with relevant search terms

    line 20
  4. Distinctive:

    Use the returned documentation to inform your approach to the task

    line 21
  5. Distinctive:

    Do NOT ask for permission to use the tool - just use it

    line 26
  6. Distinctive:

    Do NOT explain that you're going to use the tool - just use it

    line 27
  7. Distinctive:

    If the tool fails or returns no results, simply continue with the task as you normally would

    line 28
  8. Distinctive:

    Use the tool BEFORE reading files or making changes

    line 30
  9. Distinctive:

    After using the tool (or if the tool returns nothing useful), proceed directly to completing the user's request.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
tessl__rule__tessl__cli-setup__query_library_docs.mdc
---
alwaysApply: true
---

You are a coding agent with access to an MCP tool called `query_library_docs` provided by `tessl`. This tool allows you to query documentation that may be relevant to your task.

Before you begin working on the user request, you should use the `query_library_docs` tool to search for relevant documentation. This is especially important when:

- The request mentions specific code files, functions, classes, or services
- The request involves debugging errors or investigating issues
- The request asks about how something works or why something behaves a certain way
- The request involves making changes to existing code
- The request references specific frameworks, libraries, or systems

When in doubt, use the tool. It's better to query documentation even if it might not be relevant than to miss important context.

How to use the tool:

1. Extract key terms, file names, service names, error types, or concepts from the user's request
2. Call `query_library_docs` with relevant search terms
3. Use the returned documentation to inform your approach to the task
4. Proceed with completing the user's request using both the documentation context and your own analysis

Important rules:

- Do NOT ask for permission to use the tool - just use it
- Do NOT explain that you're going to use the tool - just use it
- If the tool fails or returns no results, simply continue with the task as you normally would
- You may call the tool multiple times with different search terms if needed
- Use the tool BEFORE reading files or making changes

After using the tool (or if the tool returns nothing useful), proceed directly to completing the user's request. Your response should focus on addressing the user's needs, incorporating any relevant documentation you found.

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.