You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/CLAUDE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Rust library for NP-hard problem reductions. Implements computational problems w
12
12
-[write-model-in-paper](skills/write-model-in-paper/SKILL.md) -- Write or improve a problem-def entry in the Typst paper. Covers formal definition, background, example with visualization, and algorithm list.
13
13
-[write-rule-in-paper](skills/write-rule-in-paper/SKILL.md) -- Write or improve a reduction-rule entry in the Typst paper. Covers complexity citation, self-contained proof, detailed example, and verification.
14
14
-[release](skills/release/SKILL.md) -- Create a new crate release. Determines version bump from diff, verifies tests/clippy, then runs `make release`.
15
+
-[check-issue](skills/check-issue/SKILL.md) -- Quality gate for `[Rule]` and `[Model]` issues. Checks usefulness, non-triviality, correctness of literature, and writing quality. Posts structured report and adds failure labels.
15
16
-[meta-power](skills/meta-power/SKILL.md) -- Batch-resolve all open `[Model]` and `[Rule]` issues autonomously: plan, implement, review, fix CI, merge — in dependency order (models first).
16
17
17
18
## Commands
@@ -39,6 +40,7 @@ make cli # Build the pred CLI tool (release mode)
39
40
make cli-demo # Run closed-loop CLI demo (exercises all commands)
40
41
make mcp-test # Run MCP server tests (unit + integration)
41
42
make run-plan # Execute a plan with Claude autorun
43
+
make run-issue N=42 # Run issue-to-pr --execute for a GitHub issue
42
44
make copilot-review # Request Copilot code review on current PR
43
45
make release V=x.y.z # Tag and push a new release (CI publishes to crates.io)
Copy file name to clipboardExpand all lines: .claude/skills/add-model/SKILL.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,21 @@ Update the CLI dispatch table so `pred` can load, solve, and serialize the new p
124
124
- Add a lowercase alias mapping in `resolve_alias()` (e.g., `"newproblem" => "NewProblem".to_string()`)
125
125
- Optionally add short aliases to `ALIASES` array (e.g., `("NP", "NewProblem")`)
126
126
127
+
## Step 4.5: Add CLI creation support
128
+
129
+
Update `problemreductions-cli/src/commands/create.rs` so `pred create <ProblemName>` works:
130
+
131
+
1.**Add a match arm** in the `create()` function's main `match canonical.as_str()` block. Parse CLI flags and construct the problem:
132
+
- Graph-based problems with vertex weights: add to the `"MaximumIndependentSet" | ... | "MaximalIS"` arm
133
+
- Problems with unique fields: add a new arm that parses the required flags and calls the constructor
134
+
- See existing arms for patterns (e.g., `"BinPacking"` for simple fields, `"MaximumSetPacking"` for set-based)
135
+
136
+
2.**Add CLI flags** in `problemreductions-cli/src/cli.rs` (`CreateArgs` struct) if the problem needs flags not already present. Update `all_data_flags_empty()` accordingly.
137
+
138
+
3.**Update help text** in `CreateArgs`'s `after_help` to document the new problem's flags.
139
+
140
+
4.**Schema alignment**: The `ProblemSchemaEntry` fields should list **constructor parameters** (what the user provides), not internal derived fields. For example, if `m` and `n` are derived from a matrix, only list `matrix` and `k` in the schema.
@@ -147,7 +162,7 @@ Invoke the `/write-model-in-paper` skill to write the problem-def entry in `docs
147
162
make test clippy # Must pass
148
163
```
149
164
150
-
Then run the[review-implementation](../review-implementation/SKILL.md)skill to verify all structural and semantic checks pass.
165
+
If running standalone (not inside `make run-plan`), invoke[review-implementation](../review-implementation/SKILL.md) to verify all structural and semantic checks pass. When running inside a plan, the outer orchestrator handles the review.
151
166
152
167
## Naming Conventions
153
168
@@ -168,3 +183,5 @@ Then run the [review-implementation](../review-implementation/SKILL.md) skill to
168
183
| Forgetting `declare_variants!`| Required for variant complexity metadata used by the paper's auto-generated table |
169
184
| Forgetting CLI dispatch | Must add match arms in `dispatch.rs` (`load_problem` + `serialize_any_problem`) |
170
185
| Forgetting CLI alias | Must add lowercase entry in `problem_name.rs``resolve_alias()`|
186
+
| Forgetting CLI create | Must add creation handler in `commands/create.rs` and flags in `cli.rs`|
187
+
| Schema lists derived fields | Schema should list constructor params, not internal fields (e.g., `matrix, k` not `matrix, m, n, k`) |
Copy file name to clipboardExpand all lines: .claude/skills/add-rule/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ cargo run --example export_schemas # Update problem schemas
139
139
make test clippy # Must pass
140
140
```
141
141
142
-
Then run the[review-implementation](../review-implementation/SKILL.md)skill to verify all structural and semantic checks pass.
142
+
If running standalone (not inside `make run-plan`), invoke[review-implementation](../review-implementation/SKILL.md) to verify all structural and semantic checks pass. When running inside a plan, the outer orchestrator handles the review.
0 commit comments