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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ target/
scratch.md
*claude
*.zip
.codex/
.popcorn/
.DS_Store
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Skills
A skill is a local instruction bundle stored in `SKILL.md`.

### Available skills
- popcorn-submission-workflow: Helps with Popcorn CLI registration, submission setup, submission modes, and file directives. (file: /Users/ben/code/popcorn-cli/.popcorn/skills/popcorn-submission-workflow/SKILL.md)

### How to use skills
- Load the skill by reading its `SKILL.md` file when user requests match the description.
- Follow progressive disclosure: read only relevant referenced files/scripts as needed.
- Keep the workspace setup aligned with `popcorn setup`.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ We regularly run competitions with clear due dates but for beginners we will alw

## Commands

### Setup

Bootstrap a project with Popcorn skill scaffolding and a submission template. You can overwrite existing files with `--force`.

```bash
# Create project skill scaffolding + submission.py
popcorn setup
```

This will create a new agent skill based on the [templates](templates/setup) and add it to your `.claude/skills` or `.codex/skills` directory.

### Submit

Submit a solution to a leaderboard. Supports both TUI (interactive) and plain modes.
Expand Down
4 changes: 4 additions & 0 deletions src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::path::PathBuf;

mod admin;
mod auth;
mod setup;
mod submissions;
mod submit;

Expand Down Expand Up @@ -103,6 +104,8 @@ enum SubmissionsAction {

#[derive(Subcommand, Debug)]
enum Commands {
/// Bootstrap this project with Popcorn agent skills and a submission template
Setup,
Reregister {
#[command(subcommand)]
provider: AuthProvider,
Expand Down Expand Up @@ -149,6 +152,7 @@ enum Commands {

pub async fn execute(cli: Cli) -> Result<()> {
match cli.command {
Some(Commands::Setup) => setup::run_setup().await,
Some(Commands::Reregister { provider }) => {
let provider_str = match provider {
AuthProvider::Discord => "discord",
Expand Down
Loading