@maccesar/titools 2.2.0 → 2.2.1
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.
- package/AGENTS-VERCEL-RESEARCH.md +62 -62
- package/README.md +337 -400
- package/agents/ti-pro.md +5 -4
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
# Why AGENTS.md? (Based on Vercel's
|
|
1
|
+
# Why AGENTS.md? (Based on Vercel's research)
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This explains why we use AGENTS.md or CLAUDE.md with a compressed docs index instead of relying only on skills.
|
|
4
4
|
|
|
5
|
-
## The
|
|
5
|
+
## The problem: skills alone underperform
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Vercel reports that skills-only setups hit a **53-79% pass rate** on coding tasks.
|
|
8
8
|
|
|
9
|
-
### Why
|
|
9
|
+
### Why skills underperform
|
|
10
10
|
|
|
11
11
|
| Issue | Description |
|
|
12
12
|
| ------------------- | ----------------------------------------------------- |
|
|
13
|
-
| **Decision point** |
|
|
14
|
-
| **Async loading** | Skills
|
|
15
|
-
| **Ordering issues** | "Explore first vs read docs first"
|
|
16
|
-
| **Fragile prompts** |
|
|
13
|
+
| **Decision point** | The model has to decide when to invoke a skill |
|
|
14
|
+
| **Async loading** | Skills load on-demand, so they are not always present |
|
|
15
|
+
| **Ordering issues** | "Explore first" vs "read docs first" tradeoff |
|
|
16
|
+
| **Fragile prompts** | Results depend on exact prompt wording |
|
|
17
17
|
|
|
18
|
-
## The
|
|
18
|
+
## The fix: AGENTS.md with a compressed index
|
|
19
19
|
|
|
20
|
-
Vercel
|
|
20
|
+
Vercel reports that AGENTS.md plus a compressed documentation index hit a **100% pass rate** in their evals.
|
|
21
21
|
|
|
22
|
-
### Why
|
|
22
|
+
### Why it works
|
|
23
23
|
|
|
24
|
-
1. **No decision point
|
|
25
|
-
2. **Consistent availability
|
|
26
|
-
3. **No ordering issues
|
|
27
|
-
4. **Passive context
|
|
24
|
+
1. **No decision point**: the info is already there
|
|
25
|
+
2. **Consistent availability**: present every turn, not async
|
|
26
|
+
3. **No ordering issues**: no docs vs project exploration dilemma
|
|
27
|
+
4. **Passive context**: not dependent on the prompt
|
|
28
28
|
|
|
29
|
-
### Performance
|
|
29
|
+
### Performance comparison
|
|
30
30
|
|
|
31
|
-
| Approach | Pass
|
|
31
|
+
| Approach | Pass rate |
|
|
32
32
|
| ------------------- | --------- |
|
|
33
33
|
| No documentation | 53% |
|
|
34
34
|
| Skills only | 53-79% |
|
|
@@ -36,9 +36,9 @@ Vercel reported that using AGENTS.md with a compressed documentation index achie
|
|
|
36
36
|
|
|
37
37
|
## Implementation for Titanium SDK
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### Compressed index format
|
|
40
40
|
|
|
41
|
-
The index
|
|
41
|
+
The index maps skills to their reference docs:
|
|
42
42
|
|
|
43
43
|
```
|
|
44
44
|
[Titanium SDK Docs Index]|root: ~/.agents/skills
|
|
@@ -47,56 +47,56 @@ The index uses a compressed format that maps skills to their reference documenta
|
|
|
47
47
|
|ti-ui/references:{listviews-and-performance.md,layouts-and-positioning.md,...}
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
- Need ListView performance tips? Read `~/.agents/skills/ti-ui/references/listviews-and-performance.md`
|
|
52
|
-
- Need PurgeTSS grid system? Read `~/.agents/skills/purgetss/references/grid-layout.md`
|
|
50
|
+
How the assistant should use it:
|
|
53
51
|
- Need Backbone.Models patterns? Read `~/.agents/skills/alloy-guides/references/MODELS.md`
|
|
52
|
+
- Need the PurgeTSS grid system? Read `~/.agents/skills/purgetss/references/grid-layout.md`
|
|
53
|
+
- Need ListView performance tips? Read `~/.agents/skills/ti-ui/references/listviews-and-performance.md`
|
|
54
54
|
|
|
55
|
-
### Skill
|
|
55
|
+
### Skill overview
|
|
56
56
|
|
|
57
|
-
| Skill | Purpose | Best
|
|
57
|
+
| Skill | Purpose | Best for |
|
|
58
58
|
| ---------------- | ----------------------------- | --------------------------------------------- |
|
|
59
|
-
| **
|
|
59
|
+
| **alloy-guides** | Alloy MVC reference | Models, views, controllers, widgets |
|
|
60
|
+
| **alloy-howtos** | Alloy CLI and debugging | Project setup, CLI commands, errors |
|
|
60
61
|
| **purgetss** | Utility-first styling | UI styling, animations, grid layouts |
|
|
61
|
-
| **ti-
|
|
62
|
-
| **ti-howtos** | Native feature integration | Location, Push, Media, platform-specific APIs |
|
|
62
|
+
| **ti-expert** | Architecture + implementation | Starting point for most Alloy tasks |
|
|
63
63
|
| **ti-guides** | SDK fundamentals | Hyperloop, distribution, tiapp.xml, CLI |
|
|
64
|
-
| **
|
|
65
|
-
| **
|
|
64
|
+
| **ti-howtos** | Native feature integration | Location, push, media, platform-specific APIs |
|
|
65
|
+
| **ti-ui** | UI/UX patterns | Layouts, ListViews, gestures, platform UI |
|
|
66
66
|
|
|
67
|
-
### For
|
|
67
|
+
### For complex workflows
|
|
68
68
|
|
|
69
69
|
The **ti-pro** agent (installed in `~/.claude/agents/`) handles:
|
|
70
70
|
- Codebase architecture analysis
|
|
71
71
|
- Multi-feature research across Titanium APIs
|
|
72
72
|
- Cross-referencing framework patterns
|
|
73
|
-
- Platform-specific differences
|
|
73
|
+
- Platform-specific differences
|
|
74
74
|
|
|
75
|
-
It preloads all 7 titanium-* skills for
|
|
75
|
+
It preloads all 7 titanium-* skills for broader coverage.
|
|
76
76
|
|
|
77
|
-
## How to
|
|
77
|
+
## How to use
|
|
78
78
|
|
|
79
|
-
### For Titanium
|
|
79
|
+
### For Titanium projects
|
|
80
80
|
|
|
81
|
-
Run
|
|
81
|
+
Run `titools sync` from your project root:
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
84
|
cd /path/to/your/titanium/project
|
|
85
85
|
titools sync
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
This creates
|
|
89
|
-
- `
|
|
90
|
-
- `
|
|
91
|
-
- `
|
|
88
|
+
This creates or updates:
|
|
89
|
+
- `AGENTS.md` (Codex CLI and others)
|
|
90
|
+
- `CLAUDE.md` (Claude Code)
|
|
91
|
+
- `GEMINI.md` (Gemini CLI)
|
|
92
92
|
|
|
93
|
-
### What
|
|
93
|
+
### What gets generated
|
|
94
94
|
|
|
95
|
-
The generated file
|
|
95
|
+
The generated file includes:
|
|
96
96
|
|
|
97
|
-
1. **Version marker
|
|
98
|
-
2. **
|
|
99
|
-
3. **
|
|
97
|
+
1. **Version marker**: tracks docs version
|
|
98
|
+
2. **Block boundaries**: support automatic updates
|
|
99
|
+
3. **Compressed index**: maps skills to reference files
|
|
100
100
|
|
|
101
101
|
Example output:
|
|
102
102
|
|
|
@@ -124,46 +124,46 @@ This knowledge index is based on the latest Titanium SDK documentation.
|
|
|
124
124
|
<!-- END-TITANIUM-KNOWLEDGE -->
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
### Updating the
|
|
127
|
+
### Updating the index
|
|
128
128
|
|
|
129
|
-
When you update titools,
|
|
129
|
+
When you update titools, re-run:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
132
|
titools update # Update skills and docs
|
|
133
|
-
titools sync
|
|
133
|
+
titools sync # Regenerate index in your project
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
The
|
|
136
|
+
The block is replaced automatically.
|
|
137
137
|
|
|
138
|
-
## Version
|
|
138
|
+
## Version notice
|
|
139
139
|
|
|
140
|
-
The
|
|
140
|
+
The index is based on the **latest Titanium SDK docs**.
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
To check your project's version:
|
|
143
143
|
```bash
|
|
144
144
|
grep -A 1 "<sdk-version>" tiapp.xml
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
If there's a mismatch:
|
|
148
148
|
- Newer APIs may not exist in your version
|
|
149
|
-
- Older deprecated patterns may still be valid
|
|
150
|
-
-
|
|
149
|
+
- Older deprecated patterns may still be valid
|
|
150
|
+
- Verify against your version's official docs: https://titaniumsdk.com/guide
|
|
151
151
|
|
|
152
|
-
## Key
|
|
152
|
+
## Key takeaways from Vercel's research
|
|
153
153
|
|
|
154
|
-
1. **Passive context
|
|
155
|
-
2. **No activation needed
|
|
156
|
-
3. **Consistent behavior
|
|
157
|
-
4. **100% pass rate
|
|
154
|
+
1. **Passive context beats active retrieval**: always-present info performs better than info that must be loaded
|
|
155
|
+
2. **No activation needed**: the model does not need to decide when to use a skill
|
|
156
|
+
3. **Consistent behavior**: same inputs every time, regardless of prompt wording
|
|
157
|
+
4. **100% pass rate**: AGENTS.md approach achieved perfect performance in their evals
|
|
158
158
|
|
|
159
159
|
## References
|
|
160
160
|
|
|
161
|
-
- [Vercel's
|
|
161
|
+
- [Vercel's blog: AGENTS.md outperforms skills in our agent evals](https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals)
|
|
162
162
|
- [Repository: macCesar/titools](https://github.com/macCesar/titools)
|
|
163
163
|
|
|
164
164
|
## Maintenance
|
|
165
165
|
|
|
166
|
-
This approach is maintained in
|
|
166
|
+
This approach is maintained in [titools](https://github.com/macCesar/titools).
|
|
167
167
|
|
|
168
168
|
To update your installation:
|
|
169
169
|
```bash
|