Skip to content

Commit f8c4bf1

Browse files
committed
SKILLS readme and sys instruction for gemini cli
1 parent 2c37d4d commit f8c4bf1

File tree

2 files changed

+132
-0
lines changed

2 files changed

+132
-0
lines changed

SKILLS-README.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Skills powered by coderunner, running locally on your Mac
2+
3+
> [!NOTE]
4+
> [CodeRunner](https://github.com/instavm/coderunner) executes AI-generated code in a truly isolated sandboxed environment on your Mac using Apple's native containers.
5+
6+
# Pre-requisite
7+
* `Mac` with a `M-series` chip.
8+
* Install the latest`coderunner` by running the `./install.sh` script from the main repository.
9+
```shell
10+
./install.sh
11+
```
12+
13+
# How To Use Skills
14+
* `coderunner` is exposed as an MCP and can be connected to tools like `gemini cli` or `qwen cli` or `claude desktop` or anything that supports MCP. The execution is completely local, done on your Mac.
15+
16+
*For example, for Gemini CLI, you can edit* `~/.gemini/settings.json`
17+
```json
18+
{
19+
"theme": "Default",
20+
"selectedAuthType": "oauth-personal",
21+
"mcpServers": {
22+
"coderunner": {
23+
"httpUrl": "http://coderunner.local:8222/mcp"
24+
}
25+
}
26+
}
27+
```
28+
29+
30+
31+
# How To Add New Skills
32+
33+
## Option 1: Import from Claude
34+
35+
You can either download and copy the folder from Anthropic skills's [github repo](https://github.com/anthropics/skills/) to `~/.coderunner/assets/skills/user/<new-skill-folder>`
36+
37+
For example, I have added 4 skills in the user folder as:
38+
```shell
39+
/Users/manish/.coderunner/assets/skills/
40+
├── public
41+
│ ├── image-crop-rotate
42+
│ │ ├── scripts
43+
│ │ └── SKILL.md
44+
│ └── pdf-text-replace
45+
│ ├── scripts
46+
│ └── SKILL.md
47+
└── user
48+
├── docx
49+
│ ├── docx-js.md
50+
│ ├── LICENSE.txt
51+
│ ├── ooxml
52+
│ ├── ooxml.md
53+
│ ├── scripts
54+
│ └── SKILL.md
55+
├── pptx
56+
│ ├── html2pptx.md
57+
│ ├── LICENSE.txt
58+
│ ├── ooxml
59+
│ ├── ooxml.md
60+
│ ├── scripts
61+
│ └── SKILL.md
62+
├── slack-gif-creator
63+
│ ├── core
64+
│ ├── LICENSE.txt
65+
│ ├── requirements.txt
66+
│ ├── SKILL.md
67+
│ └── templates
68+
└── xlsx
69+
├── LICENSE.txt
70+
├── recalc.py
71+
└── SKILL.md
72+
```
73+
74+
75+
## Option 2: Write Your Own Skills
76+
77+
* You can create a folder in the similar structure as above, where only mandatory file is the `SKILL.md`. [Docs](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview)
78+
* You can also ask claude to generate one like `Can you write a skill which creates ascii art of words given one.`
79+
After it creates the skill, it will let you download a `ZIP` file which you can place directly (no need to expand) in `~/.coderunner/assets/skills/user`
80+
81+
Test drive with Gemini CLI
82+
83+
```
84+
> /mcp
85+
86+
Configured MCP servers:
87+
88+
🟢 coderunner - Ready (5 tools)
89+
Tools:
90+
- execute_python_code
91+
- get_skill_file
92+
- get_skill_info
93+
- list_skills
94+
- navigate_and_get_all_visible_text
95+
96+
> can you generate ascii art for "CODERUNNER"
97+
98+
✦ I will generate the ASCII art you desire. First, I must survey my available skills.
99+
✓ list_skills (coderunner MCP Server)
100+
101+
✦ I have located a relevant skill: ascii-art. I will now retrieve its instructions.
102+
✓ get_skill_info (coderunner MCP Server) {"skill_name":"ascii-art"}
103+
✦ Your ASCII art is ready:
104+
105+
1 ____ ___ ____ _____ ____ _ _ _ _ _ _ _____ ____
106+
2 / ___/ _ \| _ \| ____| _ \| | | | \ | | \ | | ____| _ \
107+
3 | | | | | | | | | _| | |_) | | | | \| | \| | _| | |_) |
108+
4 | |__| |_| | |_| | |___| _ <| |_| | |\\ | |\\ | |___| _ <
109+
5 \____\___/|____/|_____|_| \_\\___/|_| \_|_| \_|_____|_| \_\
110+
6
111+
112+
113+
114+
115+
Using: 1 GEMINI.md file | 3 MCP servers (ctrl+t to view)
116+
```

examples/gemini_cli/GEMINI.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
always start answer by calling me lord voldemort.
2+
3+
So, we are currently on macbook, and whenever required we use tool to execute codes (in a jupyter like server). the code is executed in a container (you wouldn't notice but just know this).
4+
5+
The paths on local machine is ~/.coderunner/assets/skills/user is mapped to /app/uploads/skills/user inside container.
6+
7+
~/.coderunner/assets/outputs (in the host machine) is mapped to /app/uploads/outputs inside conatiner. This is where user will puts their files they want to edit like some png, pdf, txt etc. You should also use it to output your artifacts generated.
8+
9+
So that will help whenever we need a file inside a container to work on it via the execute code tool.
10+
11+
There are also "skills" which can do jobs by executing scripts already residing in /app/uploads/skills/<public|user>/<skill-name> . There are tools available to check what skills are avaialble, after checking you can decide wchihc specific skill you wantg to use and then get info about that skill using tool. That will have instructions on how to call execute code with stuff like `!python /path/to/script.py <input> <output>`\
12+
13+
Whenever I ask you to do a task, alwasys check if there are skills available in the list which can do it.
14+
15+
Whenever you need to install something, mostly it will be installed in teh container via execute code tool, and `!pip install pyfiglet` command etc.
16+

0 commit comments

Comments
 (0)