[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABAQXJR89MNW8GEVYGPHS7":3,"skill-same:01M7ABAQXJR89MNW8GEVYGPHS7":146},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7ABAQXJR89MNW8GEVYGPHS7","rekognition-collection-deployer",null,"Provisions Amazon Rekognition face collections and detection pipelines: collection creation with KMS encryption (must be set at create time), face indexing (index-faces, FaceId, ExternalImageId), face search by image and by FaceId with similarity threshold tuning (80%+ for production), stream processor for video analysis (Kinesis shard-level parallelism), celebrity recognition, content moderation, text in image, label detection, PPE detection, custom labels model training and deployment, SNS notification for async jobs, KMS encryption, IAM roles, cost per image\u002Fvideo, rate limiting (TPS), and collection size limits. Emits a READY_TO_DEPLOY checklist. Triggers: create rekognition collection, index faces, search faces by image, face search similarity threshold, rekognition stream processor, celebrity recognition, content moderation, ppe detection, custom labels model training, rekognition kms encryption.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rekognition-collection-deployer\ndescription: 'Provisions Amazon Rekognition face collections and detection pipelines: collection creation with KMS encryption (must be set at create time), face indexing (index-faces, FaceId, ExternalImageId), face search by image and by FaceId with similarity threshold tuning (80%+ for production), stream processor for video analysis (Kinesis shard-level parallelism), celebrity recognition, content moderation, text in image, label detection, PPE detection, custom labels model training and deployment, SNS notification for async jobs, KMS encryption, IAM roles, cost per image\u002Fvideo, rate limiting (TPS), and collection size limits. Emits a READY_TO_DEPLOY checklist. Triggers: create rekognition collection, index faces, search faces by image, face search similarity threshold, rekognition stream processor, celebrity recognition, content moderation, ppe detection, custom labels model training, rekognition kms encryption.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rekognition access. Works with Terraform aws_rekognition_collection \u002F aws_rekognition_stream_processor resources and CloudFormation AWS::Rekognition::Collection templates.'\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: AI\u002FML\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, rekognition, face-collection, cloudops, deploy, ai-ml, provisioning, stream-processor, content-moderation, celebrity-recognition, custom-labels\n  dependencies: aws-orchestrator\n  keywords: aws, rekognition, face collection, face search, cloudops, deploy, provisioning, stream processor, celebrity recognition, content moderation, label detection, custom labels, kms encryption\n  when_to_use: Invoke when the user wants to create a Rekognition face collection, index faces, search faces by image or FaceId, set up a stream processor for video analysis, detect labels or text, run content moderation, detect PPE, train and deploy custom labels models, configure celebrity recognition, or integrate Rekognition with Kinesis, SNS, and KMS. Do NOT invoke for Amazon Textract, Amazon Transcribe, or Amazon Comprehend — those are separate services.\n---\n\n# Rekognition Collection Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon Rekognition face\ncollections and detection pipelines with correct defaults. The skill\nwalks the operator through collection creation, face indexing, face\nsearch with similarity threshold tuning, stream processor configuration,\ncontent moderation, label and text detection, PPE detection, celebrity\nrecognition, custom labels model training, KMS encryption, IAM roles,\nSNS notifications, cost and rate limit considerations, and collection\nsize limits — captures detection requirements, explains why each\ndefault matters, and emits a READY_TO_DEPLOY checklist with\ncopy-pasteable verification commands.\n\n## Activation keywords\n\ncreate Rekognition collection, index faces, search faces by image, face\nsearch similarity threshold, Rekognition stream processor, celebrity\nrecognition, content moderation, text in image detection, label\ndetection, PPE detection, custom labels model training, Rekognition KMS\nencryption.\n\n## STRICT output contract\n\nWhen this skill is invoked with a Rekognition-provisioning request,\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels\n`REKOGNITION:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Collection creation and size limits | Core collection model |\n| Step 2 — Face indexing (FaceId generation) | Indexing faces |\n| Step 3 — Face search by image and by FaceId | Face matching |\n| Step 4 — Similarity threshold tuning | Production face matching |\n| Step 5 — Stream processor for video analysis | Kinesis video integration |\n| Step 6 — Celebrity recognition and moderation | Detection features |\n| Step 7 — Label, text, and PPE detection | Scene\u002Fsafety analysis |\n| Step 8 — Custom labels model lifecycle | Custom model training |\n| Step 9 — KMS encryption and IAM roles | Security |\n| Step 10 — SNS, cost, and rate limiting | Async, economics, TPS |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fface-search-and-threshold.md | Face search + threshold detail |\n| references\u002Fstream-processor-and-async.md | Stream processor + async detail |\n\n## Mindset\n\n**One-line takeaway:** A Rekognition collection is a managed face\nvector store. You create it, index faces into it (each face gets a\nFaceId), and search by image or FaceId. The similarity threshold\ndetermines match strictness — 80%+ is production-grade. For video\nanalysis, the stream processor reads from a Kinesis stream and writes\nface matches to another stream with shard-level parallelism.\n\nThree misconceptions dominate Rekognition misdesign at provisioning\ntime:\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#common-misconceptions-from-mindset).\n> Three provisioning misconceptions: default threshold, infinite collection scaling, self-scaling stream processor.\n\n## Configuration dependency graph (novel heuristic)\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#configuration-dependency-graph-sequencing-notes).\n> Dependency table plus the KMS-at-creation trap and cross-dependency gotchas.\n\n## Expert heuristic: similarity threshold 80%+ for face matching\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-similarity-threshold-80-for-face-matching).\n> Threshold guide by use case and collection size; threshold must rise as the collection grows.\n\n## Expert heuristic: stream processor shard-level parallelism\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-stream-processor-shard-level-parallelism).\n> Input shard count is the only throughput lever; typical production shard counts.\n\n## Expert heuristic: collection face count scaling\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-collection-face-count-scaling).\n> Collection size decision tree; partition above 10M faces and by data residency.\n\n## Prerequisites (verify before provisioning)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| AWS region supports Rekognition | Not all regions support all features | Check service availability |\n| KMS key (if encryption required) | KMS must be set at creation | `aws kms describe-key --key-id \u003Ckey-id>` |\n| IAM role for stream processor | Needs Kinesis read + write + Rekognition search | Verify role permissions |\n| Kinesis input\u002Foutput streams | Stream processor reads\u002Fwrites Kinesis | `aws kinesis describe-stream` |\n| S3 bucket for images\u002Fvideo | Index and async operations read from S3 | `aws s3 ls s3:\u002F\u002F\u003Cbucket>` |\n| SNS topic (if async notifications) | Async jobs send completion to SNS | `aws sns get-topic-attributes` |\n| Collection size estimate | Affects threshold and partitioning decisions | Estimate face count |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Collection creation and size limits\n\nA Rekognition collection is a managed vector index of face feature\nvectors. Each collection can hold up to 50 million faces.\n\n```bash\n# Create a collection (no encryption)\naws rekognition create-collection \\\n  --collection-id \"employee-faces\" --region us-east-1\n\n# Create a collection WITH KMS encryption (MUST be set at creation)\naws rekognition create-collection \\\n  --collection-id \"employee-faces\" \\\n  --kms-key-id arn:aws:kms:us-east-1:123456789012:key\u002Fabcd-1234 \\\n  --region us-east-1\n```\n\n**Critical:** KMS encryption CANNOT be added after creation.\n\n| Limit | Value |\n|---|---|\n| Max faces per collection | 50,000,000 |\n| Face image max size | 5 MB (JPEG\u002FPNG) |\n| Face image min size | 80x80 pixels |\n\n## Step 2 — Face indexing (FaceId generation)\n\nIndexing adds faces to the collection. Each indexed face gets a unique\nserver-generated FaceId.\n\n```bash\naws rekognition index-faces \\\n  --collection-id \"employee-faces\" \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-face-bucket\",\"Name\":\"emp-001.jpg\"}}' \\\n  --external-image-id \"employee-001\" \\\n  --max-faces 1 \\\n  --quality-filter \"AUTO\" \\\n  --region us-east-1\n```\n\n**Key parameters:**\n- `--external-image-id`: Maps FaceId to external identifier (employee\n  ID). Recommended for traceability.\n- `--max-faces`: Limits faces indexed per image. Set to 1 for\n  single-person photos.\n- `--quality-filter`: `AUTO` (recommended) filters low-quality faces.\n\n**Common mistake:** indexing without `--external-image-id` — FaceIds\nbecome opaque UUIDs with no human-readable mapping.\n\n## Step 3 — Face search by image and by FaceId\n\n**Search by image:**\n\n```bash\naws rekognition search-faces-by-image \\\n  --collection-id \"employee-faces\" \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"query.jpg\"}}' \\\n  --face-match-threshold 80 \\\n  --max-faces 5 --region us-east-1\n```\n\n**Search by FaceId (find duplicates):**\n\n```bash\naws rekognition search-faces \\\n  --collection-id \"employee-faces\" \\\n  --face-id \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\" \\\n  --face-match-threshold 80 \\\n  --max-faces 5 --region us-east-1\n```\n\nResponse includes `FaceMatches` with `Similarity` (0-100) and\n`ExternalImageId`.\n\n## Step 4 — Similarity threshold tuning\n\n| Threshold | Use case | False positive | False negative |\n|---|---|---|---|\n| 99%+ | Identity verification | Very low | High |\n| 90-99% | Badge\u002Faccess control | Low | Low |\n| 80-90% | Production matching (recommended) | Moderate | Low |\n| 60-80% | Human-in-the-loop review | High | Very low |\n| \u003C60% | NOT recommended | Very high | Near zero |\n\n**Production recommendation:** start at 80%, monitor false positives,\nincrease to 85-90% if collection exceeds 100k faces.\n\n## Step 5 — Stream processor for video analysis\n\nThe stream processor reads frames from a Kinesis data stream, searches\nagainst a collection, and writes matches to a Kinesis output stream.\n\n```bash\naws rekognition create-stream-processor \\\n  --name \"camera-feed-processor\" \\\n  --input '{\"KinesisStream\":{\"Arn\":\"arn:aws:kinesis:us-east-1:123456789012:stream\u002Frekognition-input\"}}' \\\n  --output '{\"KinesisStream\":{\"Arn\":\"arn:aws:kinesis:us-east-1:123456789012:stream\u002Frekognition-output\"}}' \\\n  --role-arn \"arn:aws:iam::123456789012:role\u002FRekognitionStreamProcessorRole\" \\\n  --settings '{\"FaceSearch\":{\"CollectionId\":\"employee-faces\",\"FaceMatchThreshold\":85.0}}' \\\n  --region us-east-1\n```\n\n**Start and monitor:**\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-5--stream-processor-start-and-monitor-commands).\n> start-stream-processor and describe-stream-processor commands.\n\n**Stream processor IAM role MUST have all three permissions:**\n\n| Permission | Resource |\n|---|---|\n| `kinesis:GetRecords`, `kinesis:GetShardIterator` | Input stream |\n| `kinesis:PutRecord`, `kinesis:PutRecords` | Output stream |\n| `rekognition:SearchFaces`, `rekognition:SearchFacesByImage` | Collection |\n\nMissing any of the three causes silent failures.\n\n## Step 6 — Celebrity recognition and moderation\n\n**Celebrity recognition** (uses built-in celebrity index, no collection):\n\n```bash\naws rekognition recognize-celebrities \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"event.jpg\"}}' \\\n  --region us-east-1\n```\n\n**Content moderation (sync):**\n\n```bash\naws rekognition detect-moderation-labels \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"user-upload.jpg\"}}' \\\n  --min-confidence 60 --region us-east-1\n```\n\n**Content moderation (async video with SNS):**\n\n```bash\nJOB_ID=$(aws rekognition start-content-moderation \\\n  --video '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"video.mp4\"}}' \\\n  --min-confidence 60 \\\n  --notification-channel '{\"SNSTopicArn\":\"arn:aws:sns:us-east-1:123456789012:rekognition-complete\",\"RoleArn\":\"arn:aws:iam::123456789012:role\u002FRekognitionSNSRole\"}' \\\n  --region us-east-1 --query 'JobId' --output text)\n\naws rekognition get-content-moderation \\\n  --job-id \"$JOB_ID\" --region us-east-1\n```\n\n## Step 7 — Label, text, and PPE detection\n\n**Label detection:**\n\n```bash\naws rekognition detect-labels \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"photo.jpg\"}}' \\\n  --max-labels 50 --min-confidence 75 --region us-east-1\n```\n\n**Text detection:**\n\n```bash\naws rekognition detect-text \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"signage.jpg\"}}' \\\n  --region us-east-1\n```\n\n**PPE detection:**\n\n```bash\naws rekognition detect-protective-equipment \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"worksite.jpg\"}}' \\\n  --required-equipment-types '[\"FACE_COVER\",\"HAND_COVER\",\"HEAD_COVER\"]' \\\n  --region us-east-1\n```\n\nResponse includes `Persons` with `BodyParts`, `EquipmentDetections`,\nand `CoversBodyPart` boolean.\n\n## Step 8 — Custom labels model lifecycle\n\nCustom labels train a model on your specific images (industrial\ndefects, product logos, etc.).\n\n```bash\n# 1. Create project\naws rekognition create-project --project-name \"industrial-defects\" --region us-east-1\n\n# 2. Create dataset and train model\naws rekognition create-project-version \\\n  --project-arn \"\u003Cproject-arn>\" \\\n  --version-name \"v1\" \\\n  --output-config '{\"S3Bucket\":\"my-bucket\",\"S3KeyPrefix\":\"model-output\u002F\"}' \\\n  --training-data '{\"Assets\":[{\"GroundTruthManifest\":{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"training\u002Fmanifest.json\"}}}]}' \\\n  --testing-data '{\"AutoCreate\":true}' \\\n  --region us-east-1\n\n# 3. Start model (inference) — charges hourly while RUNNING\naws rekognition start-project-version \\\n  --project-version-arn \"\u003Cversion-arn>\" \\\n  --min-inference-units 1 --region us-east-1\n\n# 4. STOP model when not in use (avoid idle charges)\naws rekognition stop-project-version \\\n  --project-version-arn \"\u003Cversion-arn>\" --region us-east-1\n```\n\n**Critical:** custom labels models incur hourly charges while RUNNING\n(~$4.00\u002Fhr per inference unit). Always stop when not in use.\n\n## Step 9 — KMS encryption and IAM roles\n\nKMS encryption for collections MUST be configured at creation time. The\nKMS key policy must allow the Rekognition service principal:\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Principal\": { \"Service\": \"rekognition.amazonaws.com\" },\n  \"Action\": [\"kms:Decrypt\", \"kms:GenerateDataKey\"],\n  \"Resource\": \"*\"\n}\n```\n\n**General Rekognition IAM role permissions:**\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\n    \"rekognition:CreateCollection\", \"rekognition:DescribeCollection\",\n    \"rekognition:IndexFaces\", \"rekognition:SearchFaces\",\n    \"rekognition:SearchFacesByImage\", \"rekognition:ListFaces\",\n    \"rekognition:DetectLabels\", \"rekognition:DetectText\",\n    \"rekognition:DetectModerationLabels\",\n    \"rekognition:DetectProtectiveEquipment\",\n    \"rekognition:RecognizeCelebrities\"\n  ],\n  \"Resource\": \"*\"\n}\n```\n\n## Step 10 — SNS notifications, cost, and rate limiting\n\n### SNS for async jobs\n\nAsync operations (Start*) support SNS notification on completion. Sync\noperations (Detect*, Search*) do NOT support SNS.\n\n### Cost summary\n\n| Operation | Pricing (us-east-1) | Notes |\n|---|---|---|\n| IndexFaces \u002F SearchFacesByImage | ~$0.001 per face\u002Fimage | First 1M tiered |\n| DetectLabels \u002F DetectModerationLabels | ~$0.001 per image | First 1M tiered |\n| Stream processor | ~$0.107 per minute | Billed while RUNNING |\n| Custom labels (training) | ~$1.00 per hour | Billed while training |\n| Custom labels (inference) | ~$4.00 per hour per unit | Billed while model RUNNING |\n\n**Custom labels cost trap:** the model charges per hour while RUNNING,\nnot per inference. Stop when not in use.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#rate-limiting-tps).\n> Index and search share TPS quotas; use exponential backoff on ThrottlingException.\n\n## NEVER do these things\n\n1. **NEVER create a collection without KMS encryption if compliance\n   requires it.** KMS cannot be added after creation. Specify\n   `--kms-key-id` at `create-collection` time.\n\n2. **NEVER use a similarity threshold below 80% for production face\n   matching.** False positive rates increase significantly below 80%,\n   especially as collection size grows.\n\n3. **NEVER assume the stream processor scales itself.** Throughput is\n   determined by the input Kinesis stream's shard count. Scale shards\n   to scale throughput.\n\n4. **NEVER leave a custom labels model running when not in use.**\n   Models incur hourly charges while running. Always\n   `stop-project-version` when done.\n\n5. **NEVER index faces without `--external-image-id`.** Without it,\n   FaceIds are opaque UUIDs with no human-readable mapping.\n\n6. **NEVER assume SNS notifications work with synchronous operations.**\n   SNS only works with async (Start*) operations, not sync (Detect*,\n   Search*).\n\n7. **NEVER forget that index and search share TPS quotas.** Heavy\n   indexing throttles search. Schedule bulk indexing off-peak.\n\n8. **NEVER create a stream processor without verifying all three IAM\n   permissions.** The role needs Kinesis read on input, Kinesis write\n   on output, AND Rekognition search on the collection.\n\n9. **NEVER assume search latency is constant as faces grow.** At 1M+\n   faces, consider partitioning into multiple collections.\n\n10. **NEVER use Rekognition without exponential backoff on\n    ThrottlingException.** Without backoff, batch operations will fail.\n\n## Output format\n\n```text\nREKOGNITION: \u003Ccollection-id> (\u003Ccollection-arn>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Collection: \u003Ccollection-id> — created | existing\n  [✓|✗] KMS encryption: enabled (\u003Ckey-id>) | disabled\n  [✓|✗] Face indexing: \u003Ccount> faces, ExternalImageId=\u003Cyes|no>\n  [✓|✗] Face search threshold: \u003Cthreshold>% (80%+ recommended)\n  [✓|✗] Collection size: \u003Ccount>\u002F\u003Climit> faces\n  [✓|✗] Stream processor: \u003Cname> — \u003Cstatus> (input shards: \u003Ccount>)\n  [✓|✗] Input Kinesis stream: \u003Cstream-name> (\u003Cshard-count> shards)\n  [✓|✗] Output Kinesis stream: \u003Cstream-name> (\u003Cshard-count> shards)\n  [✓|✗] Stream processor IAM role: \u003Crole-arn>\n  [✓|✗] Content moderation: \u003Cenabled|disabled> (min confidence: \u003Cvalue>%)\n  [✓|✗] Label detection: \u003Cenabled|disabled> (max labels: \u003Ccount>)\n  [✓|✗] Text detection: \u003Cenabled|disabled>\n  [✓|✗] PPE detection: \u003Cenabled|disabled>\n  [✓|✗] Celebrity recognition: \u003Cenabled|disabled>\n  [✓|✗] Custom labels: \u003Cproject>\u002F\u003Cversion> — \u003Cstatus>\n  [✓|✗] SNS topic (async): \u003Ctopic-arn>\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws rekognition describe-collection --collection-id \u003Ccollection-id> --region \u003Cregion>\n  aws rekognition list-faces --collection-id \u003Ccollection-id> --region \u003Cregion>\n  aws rekognition describe-stream-processor --name \u003Cprocessor-name> --region \u003Cregion>\n```\n\n### Worked example — face collection with stream processor\n\n```text\nREKOGNITION: employee-faces (arn:aws:rekognition:us-east-1:123456789012:collection\u002Femployee-faces)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Collection: employee-faces — created\n  [✓] KMS encryption: enabled (arn:aws:kms:us-east-1:123456789012:key\u002Fabcd-1234)\n  [✓] Face indexing: 50000 faces, ExternalImageId=yes\n  [✓] Face search threshold: 85% (80%+ recommended)\n  [✓] Collection size: 50000\u002F50000000 faces\n  [✓] Stream processor: camera-feed-processor — RUNNING (input shards: 4)\n  [✓] Input Kinesis stream: rekognition-input (4 shards)\n  [✓] Output Kinesis stream: rekognition-output (2 shards)\n  [✓] Stream processor IAM role: arn:aws:iam::123456789012:role\u002FRekognitionStreamProcessorRole\n  [✓] Content moderation: enabled (min confidence: 60%)\n  [✓] Label detection: disabled\n  [✓] Text detection: disabled\n  [✓] PPE detection: disabled\n  [✓] Celebrity recognition: disabled\n  [✓] Custom labels: N\u002FA\n  [✓] SNS topic (async): arn:aws:sns:us-east-1:123456789012:rekognition-complete\n  [✓] Tags: Environment=production, UseCase=employee-access\nVERIFICATION_COMMANDS:\n  aws rekognition describe-collection --collection-id employee-faces --region us-east-1\n  aws rekognition list-faces --collection-id employee-faces --region us-east-1\n  aws rekognition describe-stream-processor --name camera-feed-processor --region us-east-1\n```\n\n## Error handling\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#error-handling).\n> Symptom-by-symptom fixes: existing collection, KMS denied, processor start, throttling, match quality, model cost.\n\n## References (load on demand)\n\n- [advanced-patterns](references\u002Fadvanced-patterns.md) — misconceptions, dependency graph, expert-heuristics deep dives\n- [diagnostic-commands](references\u002Fdiagnostic-commands.md) — stream processor start and monitor commands\n- [error-handling](references\u002Ferror-handling.md) — symptom-by-symptom troubleshooting and rate limiting\n- [face-search-and-threshold](references\u002Fface-search-and-threshold.md) — face search + threshold detail (existing)\n- [stream-processor-and-async](references\u002Fstream-processor-and-async.md) — stream processor + async detail (existing)\n\n## Domain\n\nAWS CloudOps \u002F Amazon Rekognition Face Collection & Detection Pipeline\nProvisioning.\n\n## AWS documentation\n\n- **Rekognition Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fwhat-is.html\n- **Collections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fcollections.html\n- **Searching faces** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fsearch-faces.html\n- **Stream processor** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fstreaming-video.html\n- **Content moderation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fmoderation.html\n- **Custom labels** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fcustomlabels-dg\u002Fcu-what-is-custom-labels.html\n- **Pricing** — https:\u002F\u002Faws.amazon.com\u002Frekognition\u002Fpricing\u002F\n","# Rekognition Collection Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon Rekognition face\ncollections and detection pipelines with correct defaults. The skill\nwalks the operator through collection creation, face indexing, face\nsearch with similarity threshold tuning, stream processor configuration,\ncontent moderation, label and text detection, PPE detection, celebrity\nrecognition, custom labels model training, KMS encryption, IAM roles,\nSNS notifications, cost and rate limit considerations, and collection\nsize limits — captures detection requirements, explains why each\ndefault matters, and emits a READY_TO_DEPLOY checklist with\ncopy-pasteable verification commands.\n\n## Activation keywords\n\ncreate Rekognition collection, index faces, search faces by image, face\nsearch similarity threshold, Rekognition stream processor, celebrity\nrecognition, content moderation, text in image detection, label\ndetection, PPE detection, custom labels model training, Rekognition KMS\nencryption.\n\n## STRICT output contract\n\nWhen this skill is invoked with a Rekognition-provisioning request,\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels\n`REKOGNITION:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Collection creation and size limits | Core collection model |\n| Step 2 — Face indexing (FaceId generation) | Indexing faces |\n| Step 3 — Face search by image and by FaceId | Face matching |\n| Step 4 — Similarity threshold tuning | Production face matching |\n| Step 5 — Stream processor for video analysis | Kinesis video integration |\n| Step 6 — Celebrity recognition and moderation | Detection features |\n| Step 7 — Label, text, and PPE detection | Scene\u002Fsafety analysis |\n| Step 8 — Custom labels model lifecycle | Custom model training |\n| Step 9 — KMS encryption and IAM roles | Security |\n| Step 10 — SNS, cost, and rate limiting | Async, economics, TPS |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fface-search-and-threshold.md | Face search + threshold detail |\n| references\u002Fstream-processor-and-async.md | Stream processor + async detail |\n\n## Mindset\n\n**One-line takeaway:** A Rekognition collection is a managed face\nvector store. You create it, index faces into it (each face gets a\nFaceId), and search by image or FaceId. The similarity threshold\ndetermines match strictness — 80%+ is production-grade. For video\nanalysis, the stream processor reads from a Kinesis stream and writes\nface matches to another stream with shard-level parallelism.\n\nThree misconceptions dominate Rekognition misdesign at provisioning\ntime:\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#common-misconceptions-from-mindset).\n> Three provisioning misconceptions: default threshold, infinite collection scaling, self-scaling stream processor.\n\n## Configuration dependency graph (novel heuristic)\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#configuration-dependency-graph-sequencing-notes).\n> Dependency table plus the KMS-at-creation trap and cross-dependency gotchas.\n\n## Expert heuristic: similarity threshold 80%+ for face matching\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-similarity-threshold-80-for-face-matching).\n> Threshold guide by use case and collection size; threshold must rise as the collection grows.\n\n## Expert heuristic: stream processor shard-level parallelism\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-stream-processor-shard-level-parallelism).\n> Input shard count is the only throughput lever; typical production shard counts.\n\n## Expert heuristic: collection face count scaling\n\n> Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md#expert-heuristic-collection-face-count-scaling).\n> Collection size decision tree; partition above 10M faces and by data residency.\n\n## Prerequisites (verify before provisioning)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| AWS region supports Rekognition | Not all regions support all features | Check service availability |\n| KMS key (if encryption required) | KMS must be set at creation | `aws kms describe-key --key-id \u003Ckey-id>` |\n| IAM role for stream processor | Needs Kinesis read + write + Rekognition search | Verify role permissions |\n| Kinesis input\u002Foutput streams | Stream processor reads\u002Fwrites Kinesis | `aws kinesis describe-stream` |\n| S3 bucket for images\u002Fvideo | Index and async operations read from S3 | `aws s3 ls s3:\u002F\u002F\u003Cbucket>` |\n| SNS topic (if async notifications) | Async jobs send completion to SNS | `aws sns get-topic-attributes` |\n| Collection size estimate | Affects threshold and partitioning decisions | Estimate face count |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Collection creation and size limits\n\nA Rekognition collection is a managed vector index of face feature\nvectors. Each collection can hold up to 50 million faces.\n\n```bash\n# Create a collection (no encryption)\naws rekognition create-collection \\\n  --collection-id \"employee-faces\" --region us-east-1\n\n# Create a collection WITH KMS encryption (MUST be set at creation)\naws rekognition create-collection \\\n  --collection-id \"employee-faces\" \\\n  --kms-key-id arn:aws:kms:us-east-1:123456789012:key\u002Fabcd-1234 \\\n  --region us-east-1\n```\n\n**Critical:** KMS encryption CANNOT be added after creation.\n\n| Limit | Value |\n|---|---|\n| Max faces per collection | 50,000,000 |\n| Face image max size | 5 MB (JPEG\u002FPNG) |\n| Face image min size | 80x80 pixels |\n\n## Step 2 — Face indexing (FaceId generation)\n\nIndexing adds faces to the collection. Each indexed face gets a unique\nserver-generated FaceId.\n\n```bash\naws rekognition index-faces \\\n  --collection-id \"employee-faces\" \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-face-bucket\",\"Name\":\"emp-001.jpg\"}}' \\\n  --external-image-id \"employee-001\" \\\n  --max-faces 1 \\\n  --quality-filter \"AUTO\" \\\n  --region us-east-1\n```\n\n**Key parameters:**\n- `--external-image-id`: Maps FaceId to external identifier (employee\n  ID). Recommended for traceability.\n- `--max-faces`: Limits faces indexed per image. Set to 1 for\n  single-person photos.\n- `--quality-filter`: `AUTO` (recommended) filters low-quality faces.\n\n**Common mistake:** indexing without `--external-image-id` — FaceIds\nbecome opaque UUIDs with no human-readable mapping.\n\n## Step 3 — Face search by image and by FaceId\n\n**Search by image:**\n\n```bash\naws rekognition search-faces-by-image \\\n  --collection-id \"employee-faces\" \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"query.jpg\"}}' \\\n  --face-match-threshold 80 \\\n  --max-faces 5 --region us-east-1\n```\n\n**Search by FaceId (find duplicates):**\n\n```bash\naws rekognition search-faces \\\n  --collection-id \"employee-faces\" \\\n  --face-id \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\" \\\n  --face-match-threshold 80 \\\n  --max-faces 5 --region us-east-1\n```\n\nResponse includes `FaceMatches` with `Similarity` (0-100) and\n`ExternalImageId`.\n\n## Step 4 — Similarity threshold tuning\n\n| Threshold | Use case | False positive | False negative |\n|---|---|---|---|\n| 99%+ | Identity verification | Very low | High |\n| 90-99% | Badge\u002Faccess control | Low | Low |\n| 80-90% | Production matching (recommended) | Moderate | Low |\n| 60-80% | Human-in-the-loop review | High | Very low |\n| \u003C60% | NOT recommended | Very high | Near zero |\n\n**Production recommendation:** start at 80%, monitor false positives,\nincrease to 85-90% if collection exceeds 100k faces.\n\n## Step 5 — Stream processor for video analysis\n\nThe stream processor reads frames from a Kinesis data stream, searches\nagainst a collection, and writes matches to a Kinesis output stream.\n\n```bash\naws rekognition create-stream-processor \\\n  --name \"camera-feed-processor\" \\\n  --input '{\"KinesisStream\":{\"Arn\":\"arn:aws:kinesis:us-east-1:123456789012:stream\u002Frekognition-input\"}}' \\\n  --output '{\"KinesisStream\":{\"Arn\":\"arn:aws:kinesis:us-east-1:123456789012:stream\u002Frekognition-output\"}}' \\\n  --role-arn \"arn:aws:iam::123456789012:role\u002FRekognitionStreamProcessorRole\" \\\n  --settings '{\"FaceSearch\":{\"CollectionId\":\"employee-faces\",\"FaceMatchThreshold\":85.0}}' \\\n  --region us-east-1\n```\n\n**Start and monitor:**\n\n> Moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md#step-5--stream-processor-start-and-monitor-commands).\n> start-stream-processor and describe-stream-processor commands.\n\n**Stream processor IAM role MUST have all three permissions:**\n\n| Permission | Resource |\n|---|---|\n| `kinesis:GetRecords`, `kinesis:GetShardIterator` | Input stream |\n| `kinesis:PutRecord`, `kinesis:PutRecords` | Output stream |\n| `rekognition:SearchFaces`, `rekognition:SearchFacesByImage` | Collection |\n\nMissing any of the three causes silent failures.\n\n## Step 6 — Celebrity recognition and moderation\n\n**Celebrity recognition** (uses built-in celebrity index, no collection):\n\n```bash\naws rekognition recognize-celebrities \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"event.jpg\"}}' \\\n  --region us-east-1\n```\n\n**Content moderation (sync):**\n\n```bash\naws rekognition detect-moderation-labels \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"user-upload.jpg\"}}' \\\n  --min-confidence 60 --region us-east-1\n```\n\n**Content moderation (async video with SNS):**\n\n```bash\nJOB_ID=$(aws rekognition start-content-moderation \\\n  --video '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"video.mp4\"}}' \\\n  --min-confidence 60 \\\n  --notification-channel '{\"SNSTopicArn\":\"arn:aws:sns:us-east-1:123456789012:rekognition-complete\",\"RoleArn\":\"arn:aws:iam::123456789012:role\u002FRekognitionSNSRole\"}' \\\n  --region us-east-1 --query 'JobId' --output text)\n\naws rekognition get-content-moderation \\\n  --job-id \"$JOB_ID\" --region us-east-1\n```\n\n## Step 7 — Label, text, and PPE detection\n\n**Label detection:**\n\n```bash\naws rekognition detect-labels \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"photo.jpg\"}}' \\\n  --max-labels 50 --min-confidence 75 --region us-east-1\n```\n\n**Text detection:**\n\n```bash\naws rekognition detect-text \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"signage.jpg\"}}' \\\n  --region us-east-1\n```\n\n**PPE detection:**\n\n```bash\naws rekognition detect-protective-equipment \\\n  --image '{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"worksite.jpg\"}}' \\\n  --required-equipment-types '[\"FACE_COVER\",\"HAND_COVER\",\"HEAD_COVER\"]' \\\n  --region us-east-1\n```\n\nResponse includes `Persons` with `BodyParts`, `EquipmentDetections`,\nand `CoversBodyPart` boolean.\n\n## Step 8 — Custom labels model lifecycle\n\nCustom labels train a model on your specific images (industrial\ndefects, product logos, etc.).\n\n```bash\n# 1. Create project\naws rekognition create-project --project-name \"industrial-defects\" --region us-east-1\n\n# 2. Create dataset and train model\naws rekognition create-project-version \\\n  --project-arn \"\u003Cproject-arn>\" \\\n  --version-name \"v1\" \\\n  --output-config '{\"S3Bucket\":\"my-bucket\",\"S3KeyPrefix\":\"model-output\u002F\"}' \\\n  --training-data '{\"Assets\":[{\"GroundTruthManifest\":{\"S3Object\":{\"Bucket\":\"my-bucket\",\"Name\":\"training\u002Fmanifest.json\"}}}]}' \\\n  --testing-data '{\"AutoCreate\":true}' \\\n  --region us-east-1\n\n# 3. Start model (inference) — charges hourly while RUNNING\naws rekognition start-project-version \\\n  --project-version-arn \"\u003Cversion-arn>\" \\\n  --min-inference-units 1 --region us-east-1\n\n# 4. STOP model when not in use (avoid idle charges)\naws rekognition stop-project-version \\\n  --project-version-arn \"\u003Cversion-arn>\" --region us-east-1\n```\n\n**Critical:** custom labels models incur hourly charges while RUNNING\n(~$4.00\u002Fhr per inference unit). Always stop when not in use.\n\n## Step 9 — KMS encryption and IAM roles\n\nKMS encryption for collections MUST be configured at creation time. The\nKMS key policy must allow the Rekognition service principal:\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Principal\": { \"Service\": \"rekognition.amazonaws.com\" },\n  \"Action\": [\"kms:Decrypt\", \"kms:GenerateDataKey\"],\n  \"Resource\": \"*\"\n}\n```\n\n**General Rekognition IAM role permissions:**\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\n    \"rekognition:CreateCollection\", \"rekognition:DescribeCollection\",\n    \"rekognition:IndexFaces\", \"rekognition:SearchFaces\",\n    \"rekognition:SearchFacesByImage\", \"rekognition:ListFaces\",\n    \"rekognition:DetectLabels\", \"rekognition:DetectText\",\n    \"rekognition:DetectModerationLabels\",\n    \"rekognition:DetectProtectiveEquipment\",\n    \"rekognition:RecognizeCelebrities\"\n  ],\n  \"Resource\": \"*\"\n}\n```\n\n## Step 10 — SNS notifications, cost, and rate limiting\n\n### SNS for async jobs\n\nAsync operations (Start*) support SNS notification on completion. Sync\noperations (Detect*, Search*) do NOT support SNS.\n\n### Cost summary\n\n| Operation | Pricing (us-east-1) | Notes |\n|---|---|---|\n| IndexFaces \u002F SearchFacesByImage | ~$0.001 per face\u002Fimage | First 1M tiered |\n| DetectLabels \u002F DetectModerationLabels | ~$0.001 per image | First 1M tiered |\n| Stream processor | ~$0.107 per minute | Billed while RUNNING |\n| Custom labels (training) | ~$1.00 per hour | Billed while training |\n| Custom labels (inference) | ~$4.00 per hour per unit | Billed while model RUNNING |\n\n**Custom labels cost trap:** the model charges per hour while RUNNING,\nnot per inference. Stop when not in use.\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#rate-limiting-tps).\n> Index and search share TPS quotas; use exponential backoff on ThrottlingException.\n\n## NEVER do these things\n\n1. **NEVER create a collection without KMS encryption if compliance\n   requires it.** KMS cannot be added after creation. Specify\n   `--kms-key-id` at `create-collection` time.\n\n2. **NEVER use a similarity threshold below 80% for production face\n   matching.** False positive rates increase significantly below 80%,\n   especially as collection size grows.\n\n3. **NEVER assume the stream processor scales itself.** Throughput is\n   determined by the input Kinesis stream's shard count. Scale shards\n   to scale throughput.\n\n4. **NEVER leave a custom labels model running when not in use.**\n   Models incur hourly charges while running. Always\n   `stop-project-version` when done.\n\n5. **NEVER index faces without `--external-image-id`.** Without it,\n   FaceIds are opaque UUIDs with no human-readable mapping.\n\n6. **NEVER assume SNS notifications work with synchronous operations.**\n   SNS only works with async (Start*) operations, not sync (Detect*,\n   Search*).\n\n7. **NEVER forget that index and search share TPS quotas.** Heavy\n   indexing throttles search. Schedule bulk indexing off-peak.\n\n8. **NEVER create a stream processor without verifying all three IAM\n   permissions.** The role needs Kinesis read on input, Kinesis write\n   on output, AND Rekognition search on the collection.\n\n9. **NEVER assume search latency is constant as faces grow.** At 1M+\n   faces, consider partitioning into multiple collections.\n\n10. **NEVER use Rekognition without exponential backoff on\n    ThrottlingException.** Without backoff, batch operations will fail.\n\n## Output format\n\n```text\nREKOGNITION: \u003Ccollection-id> (\u003Ccollection-arn>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Collection: \u003Ccollection-id> — created | existing\n  [✓|✗] KMS encryption: enabled (\u003Ckey-id>) | disabled\n  [✓|✗] Face indexing: \u003Ccount> faces, ExternalImageId=\u003Cyes|no>\n  [✓|✗] Face search threshold: \u003Cthreshold>% (80%+ recommended)\n  [✓|✗] Collection size: \u003Ccount>\u002F\u003Climit> faces\n  [✓|✗] Stream processor: \u003Cname> — \u003Cstatus> (input shards: \u003Ccount>)\n  [✓|✗] Input Kinesis stream: \u003Cstream-name> (\u003Cshard-count> shards)\n  [✓|✗] Output Kinesis stream: \u003Cstream-name> (\u003Cshard-count> shards)\n  [✓|✗] Stream processor IAM role: \u003Crole-arn>\n  [✓|✗] Content moderation: \u003Cenabled|disabled> (min confidence: \u003Cvalue>%)\n  [✓|✗] Label detection: \u003Cenabled|disabled> (max labels: \u003Ccount>)\n  [✓|✗] Text detection: \u003Cenabled|disabled>\n  [✓|✗] PPE detection: \u003Cenabled|disabled>\n  [✓|✗] Celebrity recognition: \u003Cenabled|disabled>\n  [✓|✗] Custom labels: \u003Cproject>\u002F\u003Cversion> — \u003Cstatus>\n  [✓|✗] SNS topic (async): \u003Ctopic-arn>\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws rekognition describe-collection --collection-id \u003Ccollection-id> --region \u003Cregion>\n  aws rekognition list-faces --collection-id \u003Ccollection-id> --region \u003Cregion>\n  aws rekognition describe-stream-processor --name \u003Cprocessor-name> --region \u003Cregion>\n```\n\n### Worked example — face collection with stream processor\n\n```text\nREKOGNITION: employee-faces (arn:aws:rekognition:us-east-1:123456789012:collection\u002Femployee-faces)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Collection: employee-faces — created\n  [✓] KMS encryption: enabled (arn:aws:kms:us-east-1:123456789012:key\u002Fabcd-1234)\n  [✓] Face indexing: 50000 faces, ExternalImageId=yes\n  [✓] Face search threshold: 85% (80%+ recommended)\n  [✓] Collection size: 50000\u002F50000000 faces\n  [✓] Stream processor: camera-feed-processor — RUNNING (input shards: 4)\n  [✓] Input Kinesis stream: rekognition-input (4 shards)\n  [✓] Output Kinesis stream: rekognition-output (2 shards)\n  [✓] Stream processor IAM role: arn:aws:iam::123456789012:role\u002FRekognitionStreamProcessorRole\n  [✓] Content moderation: enabled (min confidence: 60%)\n  [✓] Label detection: disabled\n  [✓] Text detection: disabled\n  [✓] PPE detection: disabled\n  [✓] Celebrity recognition: disabled\n  [✓] Custom labels: N\u002FA\n  [✓] SNS topic (async): arn:aws:sns:us-east-1:123456789012:rekognition-complete\n  [✓] Tags: Environment=production, UseCase=employee-access\nVERIFICATION_COMMANDS:\n  aws rekognition describe-collection --collection-id employee-faces --region us-east-1\n  aws rekognition list-faces --collection-id employee-faces --region us-east-1\n  aws rekognition describe-stream-processor --name camera-feed-processor --region us-east-1\n```\n\n## Error handling\n\n> Moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md#error-handling).\n> Symptom-by-symptom fixes: existing collection, KMS denied, processor start, throttling, match quality, model cost.\n\n## References (load on demand)\n\n- [advanced-patterns](references\u002Fadvanced-patterns.md) — misconceptions, dependency graph, expert-heuristics deep dives\n- [diagnostic-commands](references\u002Fdiagnostic-commands.md) — stream processor start and monitor commands\n- [error-handling](references\u002Ferror-handling.md) — symptom-by-symptom troubleshooting and rate limiting\n- [face-search-and-threshold](references\u002Fface-search-and-threshold.md) — face search + threshold detail (existing)\n- [stream-processor-and-async](references\u002Fstream-processor-and-async.md) — stream processor + async detail (existing)\n\n## Domain\n\nAWS CloudOps \u002F Amazon Rekognition Face Collection & Detection Pipeline\nProvisioning.\n\n## AWS documentation\n\n- **Rekognition Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fwhat-is.html\n- **Collections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fcollections.html\n- **Searching faces** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fsearch-faces.html\n- **Stream processor** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fstreaming-video.html\n- **Content moderation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fdg\u002Fmoderation.html\n- **Custom labels** — https:\u002F\u002Fdocs.aws.amazon.com\u002Frekognition\u002Flatest\u002Fcustomlabels-dg\u002Fcu-what-is-custom-labels.html\n- **Pricing** — https:\u002F\u002Faws.amazon.com\u002Frekognition\u002Fpricing\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, rekognition, face-collection, cloudops, deploy, ai-ml, provisioning, stream-processor, content-moderation, celebrity-recognition, custom-labels","1","Jacky Chan — AWS Community Builder","aws-cloudops","AI\u002FML","0.1.0","aws, rekognition, face collection, face search, cloudops, deploy, provisioning, stream processor, celebrity recognition, content moderation, label detection, custom labels, kms encryption","deploy","high","false","capability","Invoke when the user wants to create a Rekognition face collection, index faces, search faces by image or FaceId, set up a stream processor for video analysis, detect labels or text, run content moderation, detect PPE, train and deploy custom labels models, configure celebrity recognition, or integrate Rekognition with Kinesis, SNS, and KMS. Do NOT invoke for Amazon Textract, Amazon Transcribe, or Amazon Comprehend — those are separate services.","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rekognition access. Works with Terraform aws_rekognition_collection \u002F aws_rekognition_stream_processor resources and CloudFormation AWS::Rekognition::Collection templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Frekognition-collection-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill rekognition-collection-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill rekognition-collection-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill rekognition-collection-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5653,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fcustom-labels-lifecycle.md",602,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fbaselines\u002Fcustom-labels-lifecycle.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fkms-collection-face-index.md",761,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fbaselines\u002Fkms-collection-face-index.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-kms-key.md",626,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fbaselines\u002Fmissing-kms-key.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fmoderation-and-labels-pipeline.md",690,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fbaselines\u002Fmoderation-and-labels-pipeline.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fstream-processor-kinesis.md",749,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fbaselines\u002Fstream-processor-kinesis.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1786,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9727,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcustom-labels-lifecycle.md",538,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fprompts\u002Fcustom-labels-lifecycle.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fkms-collection-face-index.md",558,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fprompts\u002Fkms-collection-face-index.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-kms-key.md",399,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fprompts\u002Fmissing-kms-key.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fmoderation-and-labels-pipeline.md",603,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fprompts\u002Fmoderation-and-labels-pipeline.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fstream-processor-kinesis.md",584,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fevals\u002Fprompts\u002Fstream-processor-kinesis.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",6021,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",6360,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdiagnostic-commands.md",571,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Ferror-handling.md",1204,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Freferences\u002Ferror-handling.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fface-search-and-threshold.md",5386,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Freferences\u002Fface-search-and-threshold.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fstream-processor-and-async.md",8088,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Freferences\u002Fstream-processor-and-async.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4537,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Frekognition-collection-deployer\u002Fskill.usf.yaml",[147,154,161,168,175,182],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]