| name | adversarial-review |
|---|---|
| description | Adversarial code review of pending changes. Spawn when you want a skeptical second pass that tries to break confidence in the change — questioning approach, design choices, tradeoffs, and assumptions — rather than a friendly correctness check. Review-only; never applies fixes. |
| model | opus |
| tools | Read, Glob, Grep, Bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Read JSON input from stdin | |
| input=$(cat) | |
| # Extract information from JSON | |
| model_name=$(echo "$input" | jq -r '.model.display_name') | |
| current_dir=$(echo "$input" | jq -r '.workspace.current_dir') | |
| # Extract context window information |
| description | Commit pending changes with context-aware messages based on conversation |
|---|---|
| allowed-tools | Bash(git status:*), Bash(git diff:*), Bash(git add:*), Bash(git commit:*), Bash(git log:*) |
Commit all pending changes on this branch. Follow these steps:
-
Run
git statusandgit diffto see all pending changes (staged and unstaged) -
Analyze the changes and determine if they should be a single commit or split into multiple commits. Split into multiple commits when:
- All sensitive data must be encrypted at rest
- Audit logging for all data access and modifications
- Role-based access control (RBAC) with principle of least privilege
- Data backup and recovery procedures
- Regular security assessments and monitoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import boto3 | |
| from botocore.config import Config | |
| from . import config | |
| r2 = boto3.client( | |
| service_name="s3", | |
| endpoint_url=config.R2_S3_ENDPOINT, | |
| aws_access_key_id=config.R2_ACCESS_KEY_ID, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // yarn add commandbar or npm install commandbar --save | |
| import { useEffect } from 'react' | |
| import { init as initCommandBar } from 'commandbar' | |
| const COMMANDBAR_ORG = | |
| process.env.COMMANDBAR_ORG || process.env.NEXT_PUBLIC_COMMANDBAR_ORG | |
| function useCommandBar({ org = COMMANDBAR_ORG, userId, userMeta = {} }) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # custom sqlalchemy column type for a pendulum datetime - https://pendulum.eustace.io/ | |
| from datetime import datetime | |
| import pendulum | |
| import sqlalchemy as sa | |
| from sqlalchemy.types import TypeDecorator as _TypeDecorator | |
| from sqlalchemy_utils.types.scalar_coercible import ScalarCoercible as _ScalarCoercible |
#til #git #github
curl -u amcclosky:<personal access token> https://api.github.com/repos/amcclosky/baseball/events
curl -u amcclosky:<personal access token> -X POST -d '{"ref":"refs/heads/recover-office-hours", "sha":"d460395af3337bc6b71fd19b154f831ecc6cfa01"}' https://api.github.com/repos/amcclosky/baseball/git/refsgithub - How to recover from a git push -force? - Stack Overflow
NewerOlder