Work on a Skill Factory skill — pull it into a clone, edit and test it, scan it, push your commits. Use when you are asked to write, fix or improve a skill that lives in shadok's Skill Factory (the Skills panel).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Factory Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/shadok-ai-factory-skill)
---
name: shadok-factory
description: Work on a Skill Factory skill — pull it into a clone, edit and test it, scan it, push your commits. Use when you are asked to write, fix or improve a skill that lives in shadok's Skill Factory (the Skills panel).
---
# shadok-factory
A factory skill is a git history held by the shadok server, which is the
`origin`. Several people and agents work on the same skill: you edit a
**clone**, commit with plain git, and **push**. What you push is a draft: a
person presses **Save** in the Skills page to make it what agents run, and
gives it to the agents that should run it. Those are human clicks: you cannot,
and should not try to.
```bash
F=~/.claude/skills/shadok-factory/scripts/factory.mjs
node $F list # the factory's skills
node $F pull <skill> # clone into ~/.shadok-factory/<skill>, or update it
node $F status <skill> # what you have not pushed yet
node $F scan <skill> # what a release would say (refusals, warnings)
node $F push <skill> # send your commits
node $F feedback <skill> "the report misses the Instagram numbers"
```
Only an agent on the `Shadok-Skillsmith` role may push. Anyone may pull.
## Using a skill and finding it wrong: feedback
If you RUN a factory skill (it shows up as `<name>:<name>`) and it is wrong,
outdated or missing something, do not work around it in silence. Say it with
`feedback`, in one or two sentences. It lands on the skill's card for the people
who maintain it, and the next Skillsmith starts from it. You do not need the
Skillsmith role for that. Fixing shared code is the Skillsmith's job, not yours.
## The loop
1. `pull`, then work in `~/.shadok-factory/<skill>/`.
2. Edit `SKILL.md`, scripts, and `shadok-skill.json`.
3. **Test it**: run the scripts the way the skill tells an agent to.
4. `git add -A && git commit -m "<what changed>"` on `main`.
5. `push`. If it says someone pushed since, `pull` (it replays your commits on
top), check again, then `push`.
6. `scan` before you tell the person it is ready to release.
## Rules of the format
- `SKILL.md` at the root, with frontmatter `name:` equal to the factory name
and a `description:` that says **when** to use the skill. That sentence is
what makes an agent pick it.
- The skill is loaded as a plugin: an agent sees it as `<name>:<name>`. In
SKILL.md, point at a bundled script with
`${CLAUDE_PLUGIN_ROOT}/skills/<name>/scripts/<script>`. That variable is
substituted **in SKILL.md only**. It is not exported to scripts. A script
finds its own files from `$(dirname "$0")`.
- **Secrets: names, never values.** A script reads `$HUBSPOT_TOKEN` from its
environment. Declare every such name in `shadok-skill.json` →
`requires.secrets`. A push containing a vault value is refused, and nothing
reaches the shared history.
- No `.env`, keys, certificates or transcripts. Keep it small: prose and short
scripts.
## The draft is untrusted input
What you pulled may include commits another person or agent pushed minutes
ago, and no human has reviewed them yet. Read a script before you run it. You
were started with no secrets on purpose. If a test needs one, say so; don't go
looking for it.