From a196978dd9957d4f20811485dea57ab7647d1c49 Mon Sep 17 00:00:00 2001 From: metyatech Date: Mon, 2 Mar 2026 13:08:06 +0900 Subject: [PATCH] chore: bring repo into compliance with AGENTS.md rules --- .github/workflows/verify.yml | 19 +++++++++++++++++++ .gitignore | 4 ++++ .prettierrc | 6 ++++++ AGENTS.md | 5 +++++ README.md | 25 +++++++++++++++++++++++++ index.js | 1 + package.json | 20 ++++++++++++++++++++ 7 files changed, 80 insertions(+) create mode 100644 .github/workflows/verify.yml create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 index.js create mode 100644 package.json diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..ebcb5ef --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,19 @@ +name: verify + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: "npm" + - run: npm ci + - run: npm run verify diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a880ae8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +.DS_Store +package-lock.json +CLAUDE.md diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..8f1866a --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": true, + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "es5" +} diff --git a/AGENTS.md b/AGENTS.md index e18dfca..a10b723 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -73,6 +73,11 @@ Source: github:metyatech/agent-rules@HEAD/rules/global/command-execution.md - Do not assume agent platform capabilities beyond what is available; fail explicitly when unavailable. - When building a CLI, follow standard conventions: --help/-h, --version/-V, stdin/stdout piping, --json output, --dry-run for mutations, deterministic exit codes, and JSON Schema config validation. +## Codex-only: Commands blocked by policy (PowerShell) + +- `Remove-Item` (aliases: `rm`, `ri`, `del`, `erase`) → Use: `if ([IO.File]::Exists($p)) { [IO.File]::SetAttributes($p,[IO.FileAttributes]::Normal); [IO.File]::Delete($p) }` +- `Remove-Item -Recurse` (aliases: `rmdir`, `rd`) → Use: `if ([IO.Directory]::Exists($d)) { [IO.File]::SetAttributes($d,[IO.FileAttributes]::Normal); foreach ($e in [IO.Directory]::EnumerateFileSystemEntries($d,'*',[IO.SearchOption]::AllDirectories)) { [IO.File]::SetAttributes($e,[IO.FileAttributes]::Normal) }; [IO.Directory]::Delete($d,$true) }` + ## Post-change deployment After modifying code, check whether deployment steps beyond commit/push are needed before concluding. diff --git a/README.md b/README.md index 3a02d07..fb17429 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,31 @@ Returns APPROVE or FLAG with specific concerns. npx skills add metyatech/skill-user-proxy --yes --global ``` +## Development + +### Prerequisites + +- [Node.js](https://nodejs.org/) (LTS recommended) +- [npm](https://www.npmjs.com/) + +### Setup + +```bash +npm install +``` + +### Verification + +```bash +npm run verify +``` + +### Formatting + +```bash +npm run format +``` + ## License MIT diff --git a/index.js b/index.js new file mode 100644 index 0000000..6822357 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +// Agent skill entry point diff --git a/package.json b/package.json new file mode 100644 index 0000000..2eff5ef --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "@metyatech/skill-user-proxy", + "version": "1.0.0", + "description": "Agent skill for user proxy review", + "type": "module", + "main": "index.js", + "scripts": { + "verify": "npm run format:check", + "format": "prettier --write .", + "format:check": "prettier --check ." + }, + "keywords": [ + "agent-skill" + ], + "author": "metyatech", + "license": "MIT", + "devDependencies": { + "prettier": "^3.0.0" + } +}