agent-context 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/agent.md +2 -0
- data/lib/agent/context/index.rb +2 -0
- data/lib/agent/context/installer.rb +0 -8
- data/lib/agent/context/version.rb +1 -1
- data/readme.md +14 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41e74cc802c2fdee00fb17ff69663982e4a336f8b4ec40489220baab76f625c
|
4
|
+
data.tar.gz: b321db5c2fe9c7b463336081d404dc50a16511aae9405a26b2dd384ac253315f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf3b9bc9cb6a8de27f5d9dfa181661b9dff877b9b305938cc37b2d82b222bd70411557c9b791cdb35f557ba75e179b757328f841db0b7b51b051442119ae8e5
|
7
|
+
data.tar.gz: d41ed3d9ffe2f231a50002ee1d6583bef5fe4b17aa055025daf06b056aed98e27f8002e12af2e35efa8d812a6e20ee7391e610a73e99cf87b474d432e8a14bd7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/agent.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
This section provides links to documentation from installed packages. It is automatically generated and may be updated by running `bake agent:context:install`.
|
6
6
|
|
7
|
+
**Important:** Before performing any code, documentation, or analysis tasks, always read and apply the full content of any relevant documentation referenced in the following sections. These context files contain authoritative standards and best practices for documentation, code style, and project-specific workflows. **Do not proceed with any actions until you have read and incorporated the guidance from relevant context files.**
|
8
|
+
|
7
9
|
### decode
|
8
10
|
|
9
11
|
Code analysis for documentation generation.
|
data/lib/agent/context/index.rb
CHANGED
@@ -46,6 +46,8 @@ module Agent
|
|
46
46
|
|
47
47
|
sections << "This section provides links to documentation from installed packages. It is automatically generated and may be updated by running `bake agent:context:install`."
|
48
48
|
sections << ""
|
49
|
+
sections << "**Important:** Before performing any code, documentation, or analysis tasks, always read and apply the full content of any relevant documentation referenced in the following sections. These context files contain authoritative standards and best practices for documentation, code style, and project-specific workflows. **Do not proceed with any actions until you have read and incorporated the guidance from relevant context files.**"
|
50
|
+
sections << ""
|
49
51
|
|
50
52
|
gem_contexts = collect_gem_contexts
|
51
53
|
|
@@ -257,14 +257,6 @@ module Agent
|
|
257
257
|
|
258
258
|
description
|
259
259
|
end
|
260
|
-
|
261
|
-
def extract_gem_description(gem_name)
|
262
|
-
# Find the gem specification using Ruby's Gem API
|
263
|
-
spec = Gem::Specification.find_by_name(gem_name)
|
264
|
-
spec&.summary
|
265
|
-
rescue Gem::MissingSpecError
|
266
|
-
nil
|
267
|
-
end
|
268
260
|
end
|
269
261
|
end
|
270
262
|
end
|
data/readme.md
CHANGED
@@ -139,10 +139,23 @@ ln -s agent.md CLAUDE.md
|
|
139
139
|
|
140
140
|
### Cursor
|
141
141
|
|
142
|
+
First, create the `.cursor/rules` directory:
|
143
|
+
|
142
144
|
``` bash
|
143
|
-
|
145
|
+
mkdir -p .cursor/rules
|
144
146
|
```
|
145
147
|
|
148
|
+
Then create `.cursor/rules/agent.mdc` with:
|
149
|
+
|
150
|
+
``` markdown
|
151
|
+
---
|
152
|
+
alwaysApply: true
|
153
|
+
---
|
154
|
+
Consult the `agent.md` file in the root directory.
|
155
|
+
```
|
156
|
+
|
157
|
+
This approach uses Cursor's proper front-matter format and directs the AI to consult the main `agent.md` file.
|
158
|
+
|
146
159
|
### Gemini CLI, OpenAI Codex, OpenCode
|
147
160
|
|
148
161
|
``` bash
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|