Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:15:12 +08:00
commit 3b5e0a14da
5 changed files with 147 additions and 0 deletions

View File

@@ -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"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# nk-aws-kubernetes
AWS profile management, kubectl context switching, and EKS helpers for Judge platform work

21
commands/judge-context.md Normal file
View File

@@ -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.

49
plugin.lock.json Normal file
View File

@@ -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": []
}
}

View File

@@ -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