diff --git a/tools/official/code-review/README.md b/tools/official/code-review/README.md new file mode 100644 index 0000000..4b91d16 --- /dev/null +++ b/tools/official/code-review/README.md @@ -0,0 +1,21 @@ +# code-review + +Review code for issues, risks, and improvements. + +## Usage + +```bash +code-review --language python --focus bugs,security --severity medium < app.py +``` + +## Arguments + +- `--language`: Programming language or `auto`. +- `--focus`: Comma-separated focus areas (e.g., `bugs,security,performance`). +- `--severity`: Minimum severity level (`low`, `medium`, `high`). + +## Examples + +```bash +cat main.go | code-review --language go --focus performance --severity high +``` diff --git a/tools/official/code-review/config.yaml b/tools/official/code-review/config.yaml new file mode 100644 index 0000000..f860b47 --- /dev/null +++ b/tools/official/code-review/config.yaml @@ -0,0 +1,37 @@ +name: code-review +version: "1.0.0" +description: "Review code for issues and improvements" +category: code-analysis +tags: + - code + - review + - quality +arguments: + - variable: language + flag: "--language" + default: "auto" + description: "Programming language (e.g., python, javascript, go)" + - variable: focus + flag: "--focus" + default: "bugs,security,performance" + description: "Comma-separated focus areas" + - variable: severity + flag: "--severity" + default: "medium" + description: "Minimum severity: low, medium, high" +steps: + - type: prompt + provider: "claude" + prompt: | + You are a senior code reviewer. + Language: {language} + Focus areas: {focus} + Minimum severity: {severity} + + Review the following code. Identify issues, risks, and improvements. + Provide a concise, prioritized list with suggestions. + + Code: + {input} + output_var: review +output: "{review}" diff --git a/tools/official/explain/README.md b/tools/official/explain/README.md new file mode 100644 index 0000000..22e0a00 --- /dev/null +++ b/tools/official/explain/README.md @@ -0,0 +1,20 @@ +# explain + +Explain code or concepts clearly with adjustable audience and format. + +## Usage + +```bash +explain --audience beginner --format step-by-step < snippet.txt +``` + +## Arguments + +- `--audience`: Audience level (`beginner`, `general`, `expert`). +- `--format`: Output format (`paragraph`, `bullet`, `step-by-step`). + +## Examples + +```bash +echo "Explain recursion" | explain --audience general --format bullet +``` diff --git a/tools/official/explain/config.yaml b/tools/official/explain/config.yaml new file mode 100644 index 0000000..fa58702 --- /dev/null +++ b/tools/official/explain/config.yaml @@ -0,0 +1,29 @@ +name: explain +version: "1.0.0" +description: "Explain code or concepts clearly" +category: education +tags: + - explanation + - learning + - code +arguments: + - variable: audience + flag: "--audience" + default: "general" + description: "Audience level: beginner, general, expert" + - variable: format + flag: "--format" + default: "paragraph" + description: "Output format: paragraph, bullet, or step-by-step" +steps: + - type: prompt + provider: "claude" + prompt: | + You are a clear and concise explainer. + Audience: {audience} + Format: {format} + + Explain the following content: + {input} + output_var: explanation +output: "{explanation}" diff --git a/tools/official/summarize/README.md b/tools/official/summarize/README.md new file mode 100644 index 0000000..940285e --- /dev/null +++ b/tools/official/summarize/README.md @@ -0,0 +1,20 @@ +# summarize + +Summarize text using AI. Designed for quick overviews, briefs, or executive summaries. + +## Usage + +```bash +summarize --max-length 200 --style neutral < input.txt +``` + +## Arguments + +- `--max-length`: Maximum length of the summary in words. Default: `200`. +- `--style`: Summary style. Options: `neutral`, `bullet`, `executive`. + +## Examples + +```bash +cat report.txt | summarize --max-length 120 --style executive +``` diff --git a/tools/official/summarize/config.yaml b/tools/official/summarize/config.yaml new file mode 100644 index 0000000..c86af8e --- /dev/null +++ b/tools/official/summarize/config.yaml @@ -0,0 +1,29 @@ +name: summarize +version: "1.0.0" +description: "Summarize text using AI" +category: text-processing +tags: + - summarization + - text + - ai +arguments: + - variable: max_length + flag: "--max-length" + default: "200" + description: "Maximum length of the summary in words" + - variable: style + flag: "--style" + default: "neutral" + description: "Summary style: neutral, bullet, or executive" +steps: + - type: prompt + provider: "claude" + prompt: | + You are a helpful assistant that summarizes text. + Style: {style} + Max length: {max_length} words. + + Summarize the following text: + {input} + output_var: summary +output: "{summary}" diff --git a/tools/official/translate/README.md b/tools/official/translate/README.md new file mode 100644 index 0000000..26cbb95 --- /dev/null +++ b/tools/official/translate/README.md @@ -0,0 +1,21 @@ +# translate + +Translate text between languages using AI. + +## Usage + +```bash +translate --from auto --to en --tone neutral < input.txt +``` + +## Arguments + +- `--from`: Source language (e.g., `en`, `es`, `fr`) or `auto`. +- `--to`: Target language (e.g., `en`, `es`, `fr`). +- `--tone`: Translation tone: `neutral`, `formal`, `casual`. + +## Examples + +```bash +echo "Hola mundo" | translate --from es --to en --tone formal +``` diff --git a/tools/official/translate/config.yaml b/tools/official/translate/config.yaml new file mode 100644 index 0000000..4409ceb --- /dev/null +++ b/tools/official/translate/config.yaml @@ -0,0 +1,34 @@ +name: translate +version: "1.0.0" +description: "Translate text between languages using AI" +category: text-processing +tags: + - translation + - localization + - text +arguments: + - variable: from_language + flag: "--from" + default: "auto" + description: "Source language (e.g., en, es, fr) or auto" + - variable: to_language + flag: "--to" + default: "en" + description: "Target language (e.g., en, es, fr)" + - variable: tone + flag: "--tone" + default: "neutral" + description: "Tone: neutral, formal, or casual" +steps: + - type: prompt + provider: "claude" + prompt: | + You are a translation assistant. + Translate from: {from_language} + Translate to: {to_language} + Tone: {tone} + + Translate the following text: + {input} + output_var: translation +output: "{translation}"