From 3b5e0a14dac636bb4c4bae7f141f16a2519eaf61 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:15:12 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 14 ++++++++ README.md | 3 ++ commands/judge-context.md | 21 ++++++++++++ plugin.lock.json | 49 +++++++++++++++++++++++++++ skills/aws-judge-setup/SKILL.md | 60 +++++++++++++++++++++++++++++++++ 5 files changed, 147 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/judge-context.md create mode 100644 plugin.lock.json create mode 100644 skills/aws-judge-setup/SKILL.md diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..cf85280 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,14 @@ +{ + "name": "nk-aws-kubernetes", + "description": "AWS profile management, kubectl context switching, and EKS helpers for Judge platform work", + "version": "1.0.0", + "author": { + "name": "Cole Kennedy" + }, + "skills": [ + "./skills" + ], + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb51608 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# nk-aws-kubernetes + +AWS profile management, kubectl context switching, and EKS helpers for Judge platform work diff --git a/commands/judge-context.md b/commands/judge-context.md new file mode 100644 index 0000000..a1bd209 --- /dev/null +++ b/commands/judge-context.md @@ -0,0 +1,21 @@ +--- +description: Set up AWS and Kubernetes context for Judge platform work +--- + +# Judge Context Setup + +Run the environment setup command to configure AWS profile and kubectl context for Judge platform work: + +```bash +export AWS_PROFILE=conda-demo && kubectl config use-context arn:aws:eks:us-east-1:831646886084:cluster/demo-judge +``` + +Then verify the configuration: + +```bash +echo "AWS Profile: $AWS_PROFILE" +kubectl config current-context +kubectl get nodes +``` + +Explain what was configured and confirm readiness for Judge platform work. diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..9ee5596 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,49 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:colek42/claude-plugins:nk-aws-kubernetes", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "1f0910664e7aeed3c924c9fd20e2772a4979128d", + "treeHash": "f58e48002cd2bb3b5d38a34fa6d39d27e90ac18f72cd4409b4aa316ab055378d", + "generatedAt": "2025-11-28T10:15:45.160668Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "nk-aws-kubernetes", + "description": "AWS profile management, kubectl context switching, and EKS helpers for Judge platform work", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "5d95de94bbd9f82b04ed824b855973cbf01d865359a1ed735ec06ccab0cf2e18" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "1ce96e5ec2c8d446534c8059ba97f917bba8077733e57b14096f71b0cb82567c" + }, + { + "path": "commands/judge-context.md", + "sha256": "d6e94409c38cf62ed35c6251632331d635a1bb6fb4e01be7fc24a01591428a29" + }, + { + "path": "skills/aws-judge-setup/SKILL.md", + "sha256": "78afcef42023cd18dcd9f4de6feee4b821db3dbf2f24d71ccf236b3e56803b34" + } + ], + "dirSha256": "f58e48002cd2bb3b5d38a34fa6d39d27e90ac18f72cd4409b4aa316ab055378d" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file diff --git a/skills/aws-judge-setup/SKILL.md b/skills/aws-judge-setup/SKILL.md new file mode 100644 index 0000000..38ef232 --- /dev/null +++ b/skills/aws-judge-setup/SKILL.md @@ -0,0 +1,60 @@ +# AWS & Kubernetes Environment Setup for Judge + +This skill ensures correct AWS and Kubernetes context before working on Judge platform tasks. + +## When to Use + +Automatically activates when: +- Working with Judge platform code +- Running AWS CLI or Terraform commands +- Executing kubectl commands +- Starting work on demo-judge cluster + +## Critical Setup Command + +**IMPORTANT: Always run this before starting Claude Code for Judge platform work:** + +```bash +export AWS_PROFILE=conda-demo && kubectl config use-context arn:aws:eks:us-east-1:831646886084:cluster/demo-judge +``` + +This ensures: +- AWS CLI & Terraform use the `conda-demo` profile (demo account) +- kubectl commands target the `demo-judge` EKS cluster +- All agent commands will use the correct AWS account and Kubernetes context + +## Command Prefixes + +When executing commands in Judge context: + +- **AWS/Terraform commands**: Always prefix with `AWS_PROFILE=conda-demo` + ```bash + AWS_PROFILE=conda-demo terraform plan + AWS_PROFILE=conda-demo aws s3 ls + ``` + +- **kubectl commands**: No prefix needed (context already set to demo-judge) + ```bash + kubectl get pods -n judge + kubectl logs -n judge deployment/judge-api + ``` + +## Verification + +Before executing AWS or kubectl commands, verify: + +```bash +# Check AWS profile +echo $AWS_PROFILE # Should output: conda-demo + +# Check kubectl context +kubectl config current-context # Should output: arn:aws:eks:us-east-1:831646886084:cluster/demo-judge +``` + +## Auto-Configuration + +When this skill is active, Claude will: +1. Verify AWS_PROFILE and kubectl context before AWS/kubectl commands +2. Automatically prefix AWS/Terraform commands with `AWS_PROFILE=conda-demo` +3. Warn if context appears incorrect for Judge platform work +4. Suggest re-running the setup command if needed