Skip to content

team-swag

Build a library of reusable skills from code you've already written.

Core trick

Extracts reusable skill files from past repositories and loads them into coding agents' context.

Tags

Description

Build a library of reusable skills from code you've already written. Feed them to coding agents to ship faster. Like a producer reusing loops they've made before, mainstacks lets you extract patterns from past projects and drop them into new ones. Your agents get context on how you build things, so they stop guessing and start building the way you would.
cjhargreaves/mainstacks★ 00 forksGoCreated May 23, 2026 · last push May 23, 2026

README excerpt

# mainstacks

Build a library of reusable skills from code you've already written. Feed them to coding agents to ship faster.

Like a producer reusing loops they've made before, mainstacks lets you extract patterns from past projects and drop them into new ones. Your agents get context on how you build things, so they stop guessing and start building the way you would.

## Install

```bash
brew tap cjhargreaves/tap
brew install mainstacks
```

Or build from source:

```bash
git clone https://github.com/cjhargreaves/mainstacks.git
cd mainstacks
go build ./cmd/mainstacks
cp mainstacks ~/.local/bin/
```

## Quick start

```bash
cd ~/my-project
mainstacks
```

First run will ask for a [Google AI API key](https://aistudio.google.com/apikey) (free tier works).

## Usage

### TUI

Run `mainstacks` in any directory:

```
⚡ mainstacks (5 skills in library)

→ Ingest repo
  Write skills
  Browse skills
  Community Market
  Quit
```

- **Ingest repo** — scans a directory, extracts skills into your library

![ingest](./demo/ingest.gif)

- **Write skills** — select skills and write a `SKILLS.md` to the current directory

![write](./demo/write.gif)

- **Browse skills** — view, inspect, and delete skills from your library

![browse](./demo/browse.gif)

- **Community Market** — browse, search, download, and upload skills shared by others

![market](./demo/market.gif)

### Community Market

Share skills with other developers and discover new ones:

```
⚡ mainstacks → Community Market

→ Brows

Team