projects > claude_rio.js
1
Claude Rio[github]
1
2
Deterministic matcher system for Claude Code that improves
3
activation of skills, agents, and commands through explicit
4
keyword-based matching.
5
6
Lightweight architecture with no external dependencies, featuring
7
shell preprocessing in 10-20ms and cross-platform support for
8
macOS, Linux, and Windows.
9
10
[GitHub][JavaScript][Node.js]
11
12
without rio with rio
13
─────────────────────────────────── ───────────────────────────────────
14
>>
15
16
17
18
19
20
21
22
activation [███░░░░░░░░░] sometimes activation [███████████░] usually
23
illustrative — claude still makes the final call
24
26
27
module.exports = function (context) {
28
// Keywords for a Docker helper skill
29
// In your matcher, replace these with keywords relevant to your skill
30
const keywords = [
31
'docker',
32
'container',
33
'dockerfile',
34
'docker-compose',
35
'compose',
36
'image',
37
'containerize',
38
];
39
40
// Convert prompt to lowercase for case-insensitive matching
41
const prompt = context.prompt.toLowerCase();
42
43
// Count how many keywords are present in the prompt
44
const matchCount = keywords.filter((keyword) => prompt.includes(keyword)).length;
45
46
// IMPORTANT: All fields are MANDATORY and must not be undefined/null
47
return {
48
version: '2.0', // Required: always "2.0"
49
matchCount: matchCount, // Required: number of matches (0+)
50
type: 'skill', // Required: "skill" or "agent"
51
};
52
};
53
NORMAL~/oleksandr/projects/claude_rio.js.../projects/claude_rio.jsmainutf-8
Enter to open · :q to quit
keys
j / kmove the cursor line, or the tree cursor
hfocus the tree; in the tree, fold or go to the parent
l / Enterin the tree, unfold or open the file
gg / Gfirst / last line
clickput the cursor on a line; on README.sh, run the session again
:qquit to the shell
:help ?this table
q / Escclose this