Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://code.claude.com/schemas/marketplace.json",
"name": "knowledge-base",
"owner": { "name": "Robert Sun", "url": "https://github.com/sunwrobert" },
"metadata": {
"description": "Robert Sun's agent skills and plugins",
"pluginRoot": "./plugins"
},
"plugins": [
{
"name": "solar",
"source": "./plugins/solar",
"description": "solar-mode and every skill it routes to: proof-first shipping, review loops, stacks, principles, prose, visuals, telemetry and recurring loops."
}
]
}
15 changes: 15 additions & 0 deletions .devin-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "knowledge-base",
"version": "1.0.0",
"description": "Meta-plugin for Robert Sun's agent plugins. Installing this repo installs every plugin listed in requiredPlugins.",
"author": { "name": "Robert Sun" },
"license": "MIT",
"keywords": ["skills", "plugins", "solar-mode"],
"requiredPlugins": [
{
"source": "git-subdir",
"url": "https://github.com/sunwrobert/knowledge-base.git",
"path": "plugins/solar"
}
]
}
3 changes: 3 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ jobs:

- name: Unit tests
run: bun run test:unit

- name: Validate skills and plugins
run: bun run validate
2 changes: 1 addition & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"rules": {
"typescript/no-explicit-any": "error"
},
"ignorePatterns": ["skills/**"]
"ignorePatterns": ["skills/**", "plugins/*/skills/**"]
}
9 changes: 8 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ skills/how
skills/improve-animations
skills/interrogate
skills/merge-risk
skills/observability-and-instrumentation
skills/principle-build-the-lever
skills/principle-encode-lessons-in-structure
skills/principle-explain-the-number
skills/principle-fix-root-causes
skills/principle-laziness-protocol
skills/principle-prove-it-works
skills/principle-redesign-from-first-principles
skills/principle-test-behavior-not-implementation
skills/programmatic-seo
skills/recall
skills/review-animations
skills/seo-audit
skills/seo
skills/seo-audit
skills/show-me-your-work
skills/sol-loop
skills/statechart
Expand All @@ -49,3 +53,6 @@ skills/vercel-react-best-practices
skills/why
skills/workers-best-practices
skills/wrangler

# Plugin skills are symlinks into skills/; format them there.
plugins/*/skills
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing

Agent skills and plugins in the [Agent Plugins](https://agent-plugins.org) format.

- `skills/<skill>/` holds every skill as real files.
- `plugins/<name>/skills/<skill>` is a symlink to `../../../skills/<skill>`.

## Rules

- A plugin is closed: every skill one of its skills links to as `../<skill>/SKILL.md` is also in the plugin. `bun run validate` fails otherwise.
- A plugin ships `plugin.json` and `skills/`, nothing client-specific.
- Register each plugin in `.devin-plugin/plugin.json` and `.claude-plugin/marketplace.json`.
- No `AGENTS.md` or `CLAUDE.md` at the repo root. The root installs as a plugin, and a root `AGENTS.md` would be injected into every session as an always-on rule. Shared agent instructions live in `docs/AGENTS.md`.
- Never commit secrets. Skills read them from the environment.
- Run `bun run check && bun run check-types && bun run validate` before opening a PR.

## Skill provenance

Imported skills carry `metadata.github-*` fields generated by `gh skill install` where supported. `skill-sources.json` catalogs verified upstreams across the personal collection, including skills not vendored here. System and bundled skills are excluded.

`upstream-comparison-commit` identifies the revision inspected for provenance; it is not a claim about the original installation revision. `local-body-modified: "true"` means the preserved body differs from that revision. Before updating a skill, compare local changes and preserve intentional customizations; do not blindly overwrite with `gh skill update` or `--force`. Supporting files may also have local changes and need review.

Humanizer uses a root-level `SKILL.md` unsupported by the installed GitHub CLI's discovery. Its source metadata was verified through GitHub's API; use its recorded source path directly instead of assuming the CLI can reinstall it. Do not invent source attribution for local or unverified skills.
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,37 @@ Canonical repository for agent skills, scripts, and shared instructions. Use thi

```
knowledge-base/
├── AGENTS.md # Shared agent instructions (code philosophy, etc.)
├── CLAUDE.md -> AGENTS.md # Symlink for Claude Code compatibility
├── scripts/ # Utility scripts
├── setup/ # New Mac setup: Brewfile, dotfiles, setup.sh
└── skills/ # Portable agent skills
├── skills/<skill>/ # Every skill, as real files
├── plugins/solar/ # The solar plugin: solar-mode and all it needs
├── .claude-plugin/marketplace.json # Catalog for Claude Code and Codex
├── .devin-plugin/plugin.json # Meta-plugin for Devin
├── docs/AGENTS.md # Shared agent instructions (code philosophy, etc.)
├── scripts/ # Utility scripts
└── setup/ # New Mac setup: Brewfile, dotfiles, setup.sh
```

## Skills
The repo follows the [Agent Plugins](https://agent-plugins.org) format, so Devin, Claude Code, Codex and Cursor read the same files. Contributor rules are in [CONTRIBUTING.md](CONTRIBUTING.md).

`skills/` holds 94 skills. Link them at user scope so every agent (Claude Code, Codex, Cursor, Pi) picks them up. The loop skips any name that already exists, so an employer's internal version of a skill keeps precedence on a work machine:
## The solar plugin

`plugins/solar` is the working style as one installable unit. `solar-mode` is its entry point, and the plugin holds every skill `solar-mode` routes to, directly or through another skill: 61 of the 101 skills here. `bun run validate` fails when a skill in the plugin links to one outside it.

**Claude Code**

```
/plugin marketplace add sunwrobert/knowledge-base
/plugin install solar@knowledge-base
```

**Codex**: `codex plugin marketplace add https://github.com/sunwrobert/knowledge-base.git`.

**Devin**: Customize > Plugins > Add plugin > From repository > `sunwrobert/knowledge-base`, or `devin plugins install sunwrobert/knowledge-base#plugins/solar`.

**Cursor**: install `plugins/solar` as an Agent Plugin.

## All skills

`skills/` holds 101 skills, 40 of them outside the solar plugin. Link them at user scope so every agent (Claude Code, Codex, Cursor, Pi) picks them up. The loop skips any name that already exists, so an employer's internal version of a skill keeps precedence on a work machine:

```bash
mkdir -p ~/.agents/skills ~/.claude/skills
Expand All @@ -28,20 +49,19 @@ done

- Skills with `metadata.github-repo` in their frontmatter are installed with `gh skill install <owner>/<repo> <path> --pin <sha> --dir skills` and stay byte-identical to that pin. Refresh them by reinstalling at a new pin, never by hand-editing. `.prettierignore` keeps the formatter off them.
- The rest are personal skills. `skill-sources.json` records the source of every skill.
- Start with `solar-mode` for the working style; it routes each step to the skill that owns it.

## Syncing With Other Repos

- Treat this repo as the canonical mirror for shared scripts and instructions.
- When editing instructions or scripts here, sync changes to consuming repos.
- Scripts are designed to run from this repo's root (not portable to other projects).

## Pointer-Style AGENTS.md
## Pointer-style AGENTS.md

Consuming repos should use a pointer to this repo's instructions:

```markdown
READ ~/Repositories/knowledge-base/AGENTS.md BEFORE ANYTHING (skip if missing).
READ ~/Repositories/knowledge-base/docs/AGENTS.md BEFORE ANYTHING (skip if missing).

<!-- repo-specific rules below -->
```
Expand Down
12 changes: 8 additions & 4 deletions AGENTS.md → docs/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ bun install # Install dependencies
bun run check # Lint with ultracite (type-aware)
bun run check-types # Typecheck with tsgo (native TS)
bun run test:unit # Run all unit tests
bun run validate # Check skills, plugins, and catalogs

# Fixing
bun run fix # Auto-fix lint/format issues
Expand All @@ -27,10 +28,13 @@ bun run test:unit <path> # Run a single test file

```
knowledge-base/
├── skills/ # Portable skill definitions and agent metadata
├── scripts/ # Utility scripts (run from repo root)
├── AGENTS.md # Shared agent instructions
└── CLAUDE.md -> AGENTS.md # Symlink for Claude Code
├── skills/<skill>/ # Shared skills, real files
├── plugins/<name>/plugin.json # Agent Plugins 1.0 manifest
├── plugins/<name>/skills/<skill> # Symlink to ../../../skills/<skill>
├── .claude-plugin/marketplace.json # Catalog for Claude Code and Codex
├── .devin-plugin/plugin.json # Meta-plugin for Devin
├── scripts/ # Utility scripts (run from repo root)
└── docs/AGENTS.md # Shared agent instructions
```

## Code Style
Expand Down
File renamed without changes.
26 changes: 12 additions & 14 deletions executor/executor.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -15,60 +15,58 @@
"headers": {
"Authorization": {
"value": "secret-public-ref:devin-api-key",
"prefix": "Bearer "
"prefix": "Bearer ",
},
"X-Org-Id": "<DEVIN_ORG_ID>"
}
"X-Org-Id": "<DEVIN_ORG_ID>",
},
},
{
"kind": "mcp",
"transport": "remote",
"name": "Datadog",
"endpoint": "https://mcp.us5.datadoghq.com/v1/mcp",
"remoteTransport": "auto",
"namespace": "datadog"
"namespace": "datadog",
},
{
"kind": "mcp",
"transport": "remote",
"name": "Granola",
"endpoint": "https://mcp.granola.ai/mcp",
"remoteTransport": "auto",
"namespace": "granola"
"namespace": "granola",
},
{
"kind": "mcp",
"transport": "remote",
"name": "Linear",
"endpoint": "https://mcp.linear.app/mcp",
"remoteTransport": "auto",
"namespace": "linear"
"namespace": "linear",
},
{
"kind": "mcp",
"transport": "remote",
"name": "Notion",
"endpoint": "https://mcp.notion.com/mcp",
"remoteTransport": "streamable-http",
"namespace": "notion"
"namespace": "notion",
},
{
"kind": "mcp",
"transport": "remote",
"name": "PostHog",
"endpoint": "https://mcp.posthog.com/mcp",
"remoteTransport": "streamable-http",
"namespace": "posthog"
"namespace": "posthog",
},
{
"kind": "mcp",
"transport": "stdio",
"name": "Slack local bridge",
"command": "node",
"args": [
"<HOME>/.local/share/slack-mcp-claude-auth/dist/index.js"
],
"namespace": "slack_local"
}
]
"args": ["<HOME>/.local/share/slack-mcp-claude-auth/dist/index.js"],
"namespace": "slack_local",
},
],
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"check": "bun ultracite check --type-aware",
"check-types": "tsgo --noEmit",
"fix": "bun ultracite fix --type-aware",
"test:unit": "vitest run --passWithNoTests"
"test:unit": "vitest run --passWithNoTests",
"validate": "bun scripts/validate.ts"
},
"dependencies": {
"@effect/cli": "0.73.0",
Expand Down
6 changes: 6 additions & 0 deletions plugins/solar/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "solar",
"version": "1.0.0",
"description": "Robert Sun's working style. solar-mode is the entry point; the plugin carries every skill solar-mode routes to, directly or through another skill, so installing it needs nothing else."
}
1 change: 1 addition & 0 deletions plugins/solar/skills/animate
1 change: 1 addition & 0 deletions plugins/solar/skills/architect
1 change: 1 addition & 0 deletions plugins/solar/skills/arena
1 change: 1 addition & 0 deletions plugins/solar/skills/audit-to-prs
1 change: 1 addition & 0 deletions plugins/solar/skills/automate-me
1 change: 1 addition & 0 deletions plugins/solar/skills/before-after-ss
1 change: 1 addition & 0 deletions plugins/solar/skills/benchmark-checklist
1 change: 1 addition & 0 deletions plugins/solar/skills/blast-radius
1 change: 1 addition & 0 deletions plugins/solar/skills/code-diagram-html
1 change: 1 addition & 0 deletions plugins/solar/skills/correct
1 change: 1 addition & 0 deletions plugins/solar/skills/council
1 change: 1 addition & 0 deletions plugins/solar/skills/council-devin
1 change: 1 addition & 0 deletions plugins/solar/skills/create-pr
1 change: 1 addition & 0 deletions plugins/solar/skills/dd-apm
1 change: 1 addition & 0 deletions plugins/solar/skills/dd-logs
1 change: 1 addition & 0 deletions plugins/solar/skills/dd-monitors
1 change: 1 addition & 0 deletions plugins/solar/skills/dd-pup
1 change: 1 addition & 0 deletions plugins/solar/skills/earn-its-keep
1 change: 1 addition & 0 deletions plugins/solar/skills/equivalence-review
1 change: 1 addition & 0 deletions plugins/solar/skills/find-animation-opportunities
1 change: 1 addition & 0 deletions plugins/solar/skills/find-unenforced-invariants
1 change: 1 addition & 0 deletions plugins/solar/skills/gh-stack
1 change: 1 addition & 0 deletions plugins/solar/skills/green-stack
1 change: 1 addition & 0 deletions plugins/solar/skills/holistic-sweep
1 change: 1 addition & 0 deletions plugins/solar/skills/how
1 change: 1 addition & 0 deletions plugins/solar/skills/humanizer
1 change: 1 addition & 0 deletions plugins/solar/skills/improve-animations
1 change: 1 addition & 0 deletions plugins/solar/skills/interrogate
1 change: 1 addition & 0 deletions plugins/solar/skills/makefaster
1 change: 1 addition & 0 deletions plugins/solar/skills/merge-risk
1 change: 1 addition & 0 deletions plugins/solar/skills/observability-and-instrumentation
1 change: 1 addition & 0 deletions plugins/solar/skills/pdd-prove
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-build-the-lever
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-encode-lessons-in-structure
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-explain-the-number
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-fix-root-causes
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-laziness-protocol
1 change: 1 addition & 0 deletions plugins/solar/skills/principle-prove-it-works
Loading
Loading