# Comments & Descriptions

It is good practice to comment and describe rules, rule sets and repositories in Tomorrow Software. Comments and descriptions help explain the purpose of the design and why it was designed in the specific manner. It also makes life easier for the next rule writer, reducing the overhead associated with association and learning.

## Rule Commenting <a href="#toc63157199" id="toc63157199"></a>

Each rule should be commented with an appropriate description that explains what it does. Rule comments could begin with a verb that briefly describes the activity.

![Rules Commenting](/files/WmcczPr2B7XBhcfBcaCr)

Comments can also be added in the rule set page as a floating text box, with the “Comment” rule. This can be used to describe the purpose of specific rule activity on the page, or detailed technical information regarding the rule set.

![Comment floating text box](/files/ZbwX4i47f5KmTdRPQQ5t)

## Rule set and repository descriptions <a href="#toc63157200" id="toc63157200"></a>

Rule sets and repositories should be given an appropriate description as to help understand their purpose.

Rule set example:

![Rule Info tab](/files/IHl23HpldfbEuC73w5In)

Repository example:

![Repository Description example](/files/QP1dvr7EEZh64yP6ibgd)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomorrowx.com/cap/best-practices/comments-and-descriptions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
