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
42 changes: 42 additions & 0 deletions .claude/commands/ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# CI Command

Run continuous integration workflow with automatic issue resolution.

## Usage

```bash
/ci
```

## Description

This command executes the full CI pipeline (`mask ci`) and automatically attempts to fix any issues that arise during:

1. **Quality Checks** - Format, lint, and dead code analysis
2. **Testing** - Run complete test suite with coverage
3. **Building** - Build and validate application containers

If any step fails, Claude will:
- Analyze the error output
- Identify the root cause
- Apply appropriate fixes (code formatting, dependency issues, test failures, etc.)
- Re-run the failed step to verify the fix
- Continue with the remaining CI steps

The command ensures all quality gates pass before completing, making it safe for deployment or merge requests.

## Implementation

The command will:
1. Run `mask ci` to execute the full CI workflow
2. Monitor output for failures or warnings
3. Automatically resolve common issues:
- Code formatting violations
- Linting errors
- Import/dependency problems
- Test failures
- Build/container issues
4. Re-run failed steps after applying fixes
5. Report final CI status and any unresolved issues

This provides an automated "fix and retry" approach to CI, reducing manual intervention while maintaining code quality standards.
14 changes: 14 additions & 0 deletions .claude/commands/infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
argument-hint: [message]
allowed-tools: Bash(*), Git(*), Pulumi(*)
description: Manage infra (up & down)
argument-hint: up | down
model: claude-3-5-haiku-20241022
---

# Task
Interpret the first token of "$ARGUMENTS" as the action (up|down). Default to up.

Then:
- If `up`, run: `flox activate --mask infrastructure up`
- If `down`, run: `flox activate -- mask infrastructure down`
10 changes: 10 additions & 0 deletions .claude/commands/lint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
argument-hint: [message]
allowed-tools: Bash(*), Git(*), Pulumi(*)
description: Manage infra (up & down)
model: claude-3-5-haiku-20241022
---

# Task
- run: `flox activate --mask lint`
- fix any linting errors
31 changes: 16 additions & 15 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"permissions": {
"allow": [
"Bash(aws lightsail:*)",
"Bash(cat:*)",
"Bash(curl:*)",
"Bash(docker:*)",
"Bash(flox activate:*)",
"Bash(gh issue:*)",
"Bash(git add:*)",
"Bash(ln:*)",
"Bash(mask:*)",
"Bash(mise:*)",
"Bash(mkdir:*)",
"Bash(gh issue create:*)",
"Bash(gh issue view:*)",
"Bash(mise run test:*)",
"Bash(mise ls:*)",
"Bash(mise tasks:*)",
"Bash(open:*)",
"Bash(pre-commit:*)",
"Bash(pulumi:*)",
"Bash(python -m pytest:*)",
"Bash(rm:*)",
"Bash(timeout 5 curl -I http://localhost:*)",
"Bash(uv:*)",
"WebFetch(domain:docs.github.com)",
"Bash(git add:*)",
"Bash(python -m pytest:*)",
"Bash(uv pip:*)",
"Bash(cat:*)",
"Bash(mise run:*)",
"Bash(gh issue close:*)",
"Bash(ln:*)",
"WebSearch",
"Bash(docker build:*)",
"Bash(uv lock:*)"
"WebSearch"
],
"deny": [],
"defaultMode": "acceptEdits"
Expand Down
Loading