[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NVRYYXXM25GZ5BDAPE9KB7":3,"skill-same:01M6NVRYYXXM25GZ5BDAPE9KB7":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":28,"commitSha":53,"skillDirectory":54,"forksCount":13,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M6NVRYYXXM25GZ5BDAPE9KB7","asset-inventory",null,"Maintain IT asset inventory and configuration management database. Track hardware, software, and cloud resources. Use when managing IT assets.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fasset-inventory\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"asset inventory","asset","inventory","community","apply","track","controls","resources","configuration management","maintain","main","github","agent-skills","devops","use","process","devops-security","license","database","change","2026-11-10 10:12:30",false,"---\nname: asset-inventory\ndescription: Maintain IT asset inventory and configuration management database. Track\n  hardware, software, and cloud resources. Use when managing IT assets.\ncategory: security\nrisk: safe\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Checklist and framework guidance; no privileged tooling required. Apply\n  controls through your own change process.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# Asset Inventory\n\nMaintain comprehensive IT asset inventory using automated discovery, AWS Config rules, cloud asset discovery scripts, CMDB integration, and tagging enforcement for compliance and operational visibility.\n\n## Asset Categories and Schema\n\n```yaml\nasset_categories:\n  compute:\n    cloud:\n      - EC2 instances \u002F Azure VMs \u002F GCE instances\n      - Lambda functions \u002F Azure Functions \u002F Cloud Functions\n      - ECS\u002FEKS clusters and tasks\n      - Container images in registries\n    on_premise:\n      - Physical servers\n      - Virtual machines (VMware, Hyper-V)\n\n  storage:\n    - S3 buckets \u002F Azure Storage \u002F GCS buckets\n    - EBS volumes \u002F Managed Disks \u002F Persistent Disks\n    - RDS instances \u002F Azure SQL \u002F Cloud SQL\n    - DynamoDB tables \u002F Cosmos DB \u002F Firestore\n    - EFS \u002F Azure Files \u002F Filestore\n\n  network:\n    - VPCs \u002F VNets \u002F VPC Networks\n    - Load balancers (ALB, NLB, Azure LB, GCP LB)\n    - DNS zones and records\n    - VPN gateways and connections\n    - CDN distributions\n\n  security:\n    - IAM users, roles, and policies\n    - KMS keys \u002F Key Vault keys\n    - Certificates (ACM, Key Vault, Certificate Manager)\n    - Security groups \u002F NSGs \u002F Firewall rules\n    - WAF configurations\n\n  applications:\n    - SaaS subscriptions\n    - Licensed software\n    - Custom applications\n    - APIs and integrations\n\n  endpoints:\n    - Laptops and desktops\n    - Mobile devices\n    - Printers and peripherals\n\nasset_record_schema:\n  required_fields:\n    asset_id: \"Unique identifier (auto-generated)\"\n    name: \"Human-readable name\"\n    type: \"Category from above taxonomy\"\n    provider: \"AWS \u002F Azure \u002F GCP \u002F On-Premise \u002F SaaS\"\n    account_or_subscription: \"Cloud account ID\"\n    region: \"Deployment region\u002Flocation\"\n    owner: \"Team or individual responsible\"\n    data_classification: \"Public \u002F Internal \u002F Confidential \u002F Restricted\"\n    environment: \"Production \u002F Staging \u002F Development \u002F Sandbox\"\n    status: \"Active \u002F Decommissioning \u002F Retired\"\n    created_date: \"When the asset was provisioned\"\n    last_seen: \"Last automated discovery timestamp\"\n\n  optional_fields:\n    cost_center: \"For cost allocation\"\n    compliance_scope: \"SOC2 \u002F HIPAA \u002F PCI \u002F None\"\n    backup_policy: \"Backup schedule reference\"\n    dr_tier: \"Critical \u002F Essential \u002F Standard \u002F Non-essential\"\n    expiration_date: \"For time-limited resources\"\n    tags: \"Key-value pairs from cloud provider\"\n    dependencies: \"Upstream and downstream services\"\n```\n\n## AWS Resource Discovery Script\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# aws-asset-discovery.sh - Discover and inventory all AWS resources\n\nOUTPUT_DIR=\".\u002Fasset-inventory\u002Faws\u002F$(date +%Y-%m-%d)\"\nmkdir -p \"$OUTPUT_DIR\"\nACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)\n\necho \"=== AWS Asset Discovery for Account $ACCOUNT_ID ===\"\n\n# EC2 Instances\necho \"--- EC2 Instances ---\"\naws ec2 describe-instances \\\n  --query 'Reservations[*].Instances[*].{\n    InstanceId:InstanceId,\n    Type:InstanceType,\n    State:State.Name,\n    AZ:Placement.AvailabilityZone,\n    VpcId:VpcId,\n    PrivateIP:PrivateIpAddress,\n    PublicIP:PublicIpAddress,\n    LaunchTime:LaunchTime,\n    Name:Tags[?Key==`Name`].Value|[0],\n    Owner:Tags[?Key==`Owner`].Value|[0],\n    Environment:Tags[?Key==`Environment`].Value|[0]\n  }' --output json | jq 'flatten' > \"$OUTPUT_DIR\u002Fec2-instances.json\"\n\n# RDS Databases\necho \"--- RDS Instances ---\"\naws rds describe-db-instances \\\n  --query 'DBInstances[*].{\n    DBInstanceId:DBInstanceIdentifier,\n    Engine:Engine,\n    EngineVersion:EngineVersion,\n    Class:DBInstanceClass,\n    Status:DBInstanceStatus,\n    MultiAZ:MultiAZ,\n    Encrypted:StorageEncrypted,\n    Endpoint:Endpoint.Address,\n    BackupRetention:BackupRetentionPeriod\n  }' --output json > \"$OUTPUT_DIR\u002Frds-instances.json\"\n\n# S3 Buckets\necho \"--- S3 Buckets ---\"\naws s3api list-buckets --query 'Buckets[*].{Name:Name,Created:CreationDate}' --output json | \\\n  jq -c '.[]' | while read -r bucket; do\n    name=$(echo \"$bucket\" | jq -r '.Name')\n    region=$(aws s3api get-bucket-location --bucket \"$name\" --query 'LocationConstraint' --output text 2>\u002Fdev\u002Fnull)\n    encryption=$(aws s3api get-bucket-encryption --bucket \"$name\" 2>\u002Fdev\u002Fnull | jq -r '.ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.SSEAlgorithm' 2>\u002Fdev\u002Fnull)\n    versioning=$(aws s3api get-bucket-versioning --bucket \"$name\" --query 'Status' --output text 2>\u002Fdev\u002Fnull)\n    echo \"{\\\"Name\\\":\\\"$name\\\",\\\"Region\\\":\\\"${region:-us-east-1}\\\",\\\"Encryption\\\":\\\"${encryption:-none}\\\",\\\"Versioning\\\":\\\"${versioning:-Disabled}\\\"}\"\n  done | jq -s '.' > \"$OUTPUT_DIR\u002Fs3-buckets.json\"\n\n# Lambda Functions\necho \"--- Lambda Functions ---\"\naws lambda list-functions \\\n  --query 'Functions[*].{\n    Name:FunctionName,\n    Runtime:Runtime,\n    MemorySize:MemorySize,\n    Timeout:Timeout,\n    LastModified:LastModified,\n    CodeSize:CodeSize\n  }' --output json > \"$OUTPUT_DIR\u002Flambda-functions.json\"\n\n# VPCs and Security Groups\necho \"--- VPCs ---\"\naws ec2 describe-vpcs \\\n  --query 'Vpcs[*].{\n    VpcId:VpcId,\n    CidrBlock:CidrBlock,\n    State:State,\n    IsDefault:IsDefault,\n    Name:Tags[?Key==`Name`].Value|[0]\n  }' --output json > \"$OUTPUT_DIR\u002Fvpcs.json\"\n\necho \"--- Security Groups ---\"\naws ec2 describe-security-groups \\\n  --query 'SecurityGroups[*].{\n    GroupId:GroupId,\n    GroupName:GroupName,\n    VpcId:VpcId,\n    Description:Description,\n    IngressRuleCount:length(IpPermissions),\n    EgressRuleCount:length(IpPermissionsEgress)\n  }' --output json > \"$OUTPUT_DIR\u002Fsecurity-groups.json\"\n\n# IAM Users and Roles\necho \"--- IAM Users ---\"\naws iam list-users \\\n  --query 'Users[*].{UserName:UserName,Created:CreateDate,PasswordLastUsed:PasswordLastUsed}' \\\n  --output json > \"$OUTPUT_DIR\u002Fiam-users.json\"\n\necho \"--- IAM Roles ---\"\naws iam list-roles \\\n  --query 'Roles[*].{RoleName:RoleName,Created:CreateDate,LastUsed:RoleLastUsed.LastUsedDate}' \\\n  --output json > \"$OUTPUT_DIR\u002Fiam-roles.json\"\n\n# EKS Clusters\necho \"--- EKS Clusters ---\"\naws eks list-clusters --query 'clusters' --output json | jq -r '.[]' | while read -r cluster; do\n  aws eks describe-cluster --name \"$cluster\" \\\n    --query 'cluster.{Name:name,Version:version,Status:status,Endpoint:endpoint,Created:createdAt}'\ndone | jq -s '.' > \"$OUTPUT_DIR\u002Feks-clusters.json\" 2>\u002Fdev\u002Fnull\n\n# KMS Keys\necho \"--- KMS Keys ---\"\naws kms list-keys --query 'Keys[*].KeyId' --output text | tr '\\t' '\\n' | while read -r key_id; do\n  aws kms describe-key --key-id \"$key_id\" \\\n    --query 'KeyMetadata.{KeyId:KeyId,Description:Description,State:KeyState,Created:CreationDate,Manager:KeyManager}' 2>\u002Fdev\u002Fnull\ndone | jq -s '.' > \"$OUTPUT_DIR\u002Fkms-keys.json\"\n\n# Generate summary\necho \"=== Inventory Summary ===\"\necho \"EC2 Instances: $(jq 'length' \"$OUTPUT_DIR\u002Fec2-instances.json\")\"\necho \"RDS Instances: $(jq 'length' \"$OUTPUT_DIR\u002Frds-instances.json\")\"\necho \"S3 Buckets: $(jq 'length' \"$OUTPUT_DIR\u002Fs3-buckets.json\")\"\necho \"Lambda Functions: $(jq 'length' \"$OUTPUT_DIR\u002Flambda-functions.json\")\"\necho \"VPCs: $(jq 'length' \"$OUTPUT_DIR\u002Fvpcs.json\")\"\necho \"Security Groups: $(jq 'length' \"$OUTPUT_DIR\u002Fsecurity-groups.json\")\"\necho \"IAM Users: $(jq 'length' \"$OUTPUT_DIR\u002Fiam-users.json\")\"\necho \"IAM Roles: $(jq 'length' \"$OUTPUT_DIR\u002Fiam-roles.json\")\"\n\necho \"Inventory saved to $OUTPUT_DIR\"\n```\n\n## AWS Config Rules for Inventory Compliance\n\n```bash\n# Enable AWS Config recorder\naws configservice put-configuration-recorder \\\n  --configuration-recorder name=default,roleARN=arn:aws:iam::123456789012:role\u002Faws-config-role \\\n  --recording-group allSupported=true,includeGlobalResourceTypes=true\n\n# Start recording\naws configservice start-configuration-recorder --configuration-recorder-name default\n\n# Enable required-tags Config rule\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"required-tags\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"REQUIRED_TAGS\"\n  },\n  \"InputParameters\": \"{\\\"tag1Key\\\":\\\"Owner\\\",\\\"tag2Key\\\":\\\"Environment\\\",\\\"tag3Key\\\":\\\"CostCenter\\\",\\\"tag4Key\\\":\\\"DataClassification\\\"}\",\n  \"Scope\": {\n    \"ComplianceResourceTypes\": [\n      \"AWS::EC2::Instance\",\n      \"AWS::RDS::DBInstance\",\n      \"AWS::S3::Bucket\",\n      \"AWS::Lambda::Function\"\n    ]\n  }\n}'\n\n# Config rule for encryption compliance\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"encrypted-volumes\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"ENCRYPTED_VOLUMES\"\n  }\n}'\n\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"rds-storage-encrypted\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"RDS_STORAGE_ENCRYPTED\"\n  }\n}'\n\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"s3-bucket-server-side-encryption-enabled\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED\"\n  }\n}'\n\n# Query AWS Config for all resources of a type\naws configservice list-discovered-resources --resource-type AWS::EC2::Instance\naws configservice list-discovered-resources --resource-type AWS::RDS::DBInstance\n\n# Advanced query with AWS Config SQL\naws configservice select-resource-config \\\n  --expression \"SELECT resourceId, resourceType, tags, configuration.instanceType\n                WHERE resourceType = 'AWS::EC2::Instance'\n                AND tags.tag('Environment') = 'production'\"\n\n# Get compliance summary\naws configservice get-compliance-summary-by-config-rule\naws configservice get-compliance-summary-by-resource-type\n```\n\n## Tagging Enforcement\n\n```yaml\n# AWS Tag Policy (applied via AWS Organizations)\ntag_policy:\n  tags:\n    Owner:\n      tag_key:\n        \"@@assign\": \"Owner\"\n      enforced_for:\n        \"@@assign\":\n          - \"ec2:instance\"\n          - \"rds:db\"\n          - \"s3:bucket\"\n          - \"lambda:function\"\n\n    Environment:\n      tag_key:\n        \"@@assign\": \"Environment\"\n      tag_value:\n        \"@@assign\":\n          - \"production\"\n          - \"staging\"\n          - \"development\"\n          - \"sandbox\"\n\n    DataClassification:\n      tag_key:\n        \"@@assign\": \"DataClassification\"\n      tag_value:\n        \"@@assign\":\n          - \"public\"\n          - \"internal\"\n          - \"confidential\"\n          - \"restricted\"\n\n    CostCenter:\n      tag_key:\n        \"@@assign\": \"CostCenter\"\n```\n\n```hcl\n# Terraform - Enforce tags on all resources with default_tags\nprovider \"aws\" {\n  region = \"us-east-1\"\n\n  default_tags {\n    tags = {\n      ManagedBy          = \"terraform\"\n      Environment        = var.environment\n      Owner              = var.team_name\n      CostCenter         = var.cost_center\n      DataClassification = var.data_classification\n    }\n  }\n}\n```\n\n## Multi-Cloud Discovery\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# multi-cloud-discovery.sh - Discover assets across AWS, Azure, and GCP\n\nOUTPUT_DIR=\".\u002Fasset-inventory\u002Fmulti-cloud\u002F$(date +%Y-%m-%d)\"\nmkdir -p \"$OUTPUT_DIR\"\n\necho \"=== Multi-Cloud Asset Discovery ===\"\n\n# AWS - using Resource Groups Tagging API\necho \"--- AWS Resources ---\"\naws resourcegroupstaggingapi get-resources \\\n  --query 'ResourceTagMappingList[*].{ARN:ResourceARN,Tags:Tags}' \\\n  --output json > \"$OUTPUT_DIR\u002Faws-all-resources.json\"\necho \"AWS resources: $(jq 'length' \"$OUTPUT_DIR\u002Faws-all-resources.json\")\"\n\n# Azure - using Resource Graph\necho \"--- Azure Resources ---\"\naz graph query -q \"Resources | project name, type, location, resourceGroup, subscriptionId, tags\" \\\n  --output json > \"$OUTPUT_DIR\u002Fazure-all-resources.json\" 2>\u002Fdev\u002Fnull\n\n# GCP - using Cloud Asset Inventory\necho \"--- GCP Resources ---\"\ngcloud asset search-all-resources \\\n  --scope=\"organizations\u002FORG_ID\" \\\n  --format=json > \"$OUTPUT_DIR\u002Fgcp-all-resources.json\" 2>\u002Fdev\u002Fnull\n\n# Find untagged resources\necho \"=== Untagged Resources ===\"\njq '[.[] | select(.Tags == null or .Tags == [])] | length' \"$OUTPUT_DIR\u002Faws-all-resources.json\"\n\necho \"Discovery complete. Results in $OUTPUT_DIR\"\n```\n\n\n## Contents\n\n- [CMDB Integration](references\u002Fdetails.md)\n- [Asset Inventory Checklist](references\u002Fdetails.md)\n- [Best Practices](references\u002Fdetails.md)\n\n## When to Use\n\n- Building or maintaining an IT asset inventory for compliance frameworks (ISO 27001, SOC 2, FedRAMP)\n- Implementing automated cloud resource discovery across accounts and regions\n- Enforcing tagging standards for cost allocation, ownership, and data classification\n- Integrating asset data with a CMDB for operational workflows\n- Preparing for audits that require a complete system component inventory\n\n## Limitations\n\n- Guidance and checklists only; not legal advice and not a substitute for a qualified auditor.\n- Docs-only import: upstream templates and scripts not bundled.\n\n### Example\n\n```markdown\nMap this skill's control checklist to our current evidence and list gaps.\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n","# Asset Inventory\n\nMaintain comprehensive IT asset inventory using automated discovery, AWS Config rules, cloud asset discovery scripts, CMDB integration, and tagging enforcement for compliance and operational visibility.\n\n## Asset Categories and Schema\n\n```yaml\nasset_categories:\n  compute:\n    cloud:\n      - EC2 instances \u002F Azure VMs \u002F GCE instances\n      - Lambda functions \u002F Azure Functions \u002F Cloud Functions\n      - ECS\u002FEKS clusters and tasks\n      - Container images in registries\n    on_premise:\n      - Physical servers\n      - Virtual machines (VMware, Hyper-V)\n\n  storage:\n    - S3 buckets \u002F Azure Storage \u002F GCS buckets\n    - EBS volumes \u002F Managed Disks \u002F Persistent Disks\n    - RDS instances \u002F Azure SQL \u002F Cloud SQL\n    - DynamoDB tables \u002F Cosmos DB \u002F Firestore\n    - EFS \u002F Azure Files \u002F Filestore\n\n  network:\n    - VPCs \u002F VNets \u002F VPC Networks\n    - Load balancers (ALB, NLB, Azure LB, GCP LB)\n    - DNS zones and records\n    - VPN gateways and connections\n    - CDN distributions\n\n  security:\n    - IAM users, roles, and policies\n    - KMS keys \u002F Key Vault keys\n    - Certificates (ACM, Key Vault, Certificate Manager)\n    - Security groups \u002F NSGs \u002F Firewall rules\n    - WAF configurations\n\n  applications:\n    - SaaS subscriptions\n    - Licensed software\n    - Custom applications\n    - APIs and integrations\n\n  endpoints:\n    - Laptops and desktops\n    - Mobile devices\n    - Printers and peripherals\n\nasset_record_schema:\n  required_fields:\n    asset_id: \"Unique identifier (auto-generated)\"\n    name: \"Human-readable name\"\n    type: \"Category from above taxonomy\"\n    provider: \"AWS \u002F Azure \u002F GCP \u002F On-Premise \u002F SaaS\"\n    account_or_subscription: \"Cloud account ID\"\n    region: \"Deployment region\u002Flocation\"\n    owner: \"Team or individual responsible\"\n    data_classification: \"Public \u002F Internal \u002F Confidential \u002F Restricted\"\n    environment: \"Production \u002F Staging \u002F Development \u002F Sandbox\"\n    status: \"Active \u002F Decommissioning \u002F Retired\"\n    created_date: \"When the asset was provisioned\"\n    last_seen: \"Last automated discovery timestamp\"\n\n  optional_fields:\n    cost_center: \"For cost allocation\"\n    compliance_scope: \"SOC2 \u002F HIPAA \u002F PCI \u002F None\"\n    backup_policy: \"Backup schedule reference\"\n    dr_tier: \"Critical \u002F Essential \u002F Standard \u002F Non-essential\"\n    expiration_date: \"For time-limited resources\"\n    tags: \"Key-value pairs from cloud provider\"\n    dependencies: \"Upstream and downstream services\"\n```\n\n## AWS Resource Discovery Script\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# aws-asset-discovery.sh - Discover and inventory all AWS resources\n\nOUTPUT_DIR=\".\u002Fasset-inventory\u002Faws\u002F$(date +%Y-%m-%d)\"\nmkdir -p \"$OUTPUT_DIR\"\nACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)\n\necho \"=== AWS Asset Discovery for Account $ACCOUNT_ID ===\"\n\n# EC2 Instances\necho \"--- EC2 Instances ---\"\naws ec2 describe-instances \\\n  --query 'Reservations[*].Instances[*].{\n    InstanceId:InstanceId,\n    Type:InstanceType,\n    State:State.Name,\n    AZ:Placement.AvailabilityZone,\n    VpcId:VpcId,\n    PrivateIP:PrivateIpAddress,\n    PublicIP:PublicIpAddress,\n    LaunchTime:LaunchTime,\n    Name:Tags[?Key==`Name`].Value|[0],\n    Owner:Tags[?Key==`Owner`].Value|[0],\n    Environment:Tags[?Key==`Environment`].Value|[0]\n  }' --output json | jq 'flatten' > \"$OUTPUT_DIR\u002Fec2-instances.json\"\n\n# RDS Databases\necho \"--- RDS Instances ---\"\naws rds describe-db-instances \\\n  --query 'DBInstances[*].{\n    DBInstanceId:DBInstanceIdentifier,\n    Engine:Engine,\n    EngineVersion:EngineVersion,\n    Class:DBInstanceClass,\n    Status:DBInstanceStatus,\n    MultiAZ:MultiAZ,\n    Encrypted:StorageEncrypted,\n    Endpoint:Endpoint.Address,\n    BackupRetention:BackupRetentionPeriod\n  }' --output json > \"$OUTPUT_DIR\u002Frds-instances.json\"\n\n# S3 Buckets\necho \"--- S3 Buckets ---\"\naws s3api list-buckets --query 'Buckets[*].{Name:Name,Created:CreationDate}' --output json | \\\n  jq -c '.[]' | while read -r bucket; do\n    name=$(echo \"$bucket\" | jq -r '.Name')\n    region=$(aws s3api get-bucket-location --bucket \"$name\" --query 'LocationConstraint' --output text 2>\u002Fdev\u002Fnull)\n    encryption=$(aws s3api get-bucket-encryption --bucket \"$name\" 2>\u002Fdev\u002Fnull | jq -r '.ServerSideEncryptionConfiguration.Rules[0].ApplyServerSideEncryptionByDefault.SSEAlgorithm' 2>\u002Fdev\u002Fnull)\n    versioning=$(aws s3api get-bucket-versioning --bucket \"$name\" --query 'Status' --output text 2>\u002Fdev\u002Fnull)\n    echo \"{\\\"Name\\\":\\\"$name\\\",\\\"Region\\\":\\\"${region:-us-east-1}\\\",\\\"Encryption\\\":\\\"${encryption:-none}\\\",\\\"Versioning\\\":\\\"${versioning:-Disabled}\\\"}\"\n  done | jq -s '.' > \"$OUTPUT_DIR\u002Fs3-buckets.json\"\n\n# Lambda Functions\necho \"--- Lambda Functions ---\"\naws lambda list-functions \\\n  --query 'Functions[*].{\n    Name:FunctionName,\n    Runtime:Runtime,\n    MemorySize:MemorySize,\n    Timeout:Timeout,\n    LastModified:LastModified,\n    CodeSize:CodeSize\n  }' --output json > \"$OUTPUT_DIR\u002Flambda-functions.json\"\n\n# VPCs and Security Groups\necho \"--- VPCs ---\"\naws ec2 describe-vpcs \\\n  --query 'Vpcs[*].{\n    VpcId:VpcId,\n    CidrBlock:CidrBlock,\n    State:State,\n    IsDefault:IsDefault,\n    Name:Tags[?Key==`Name`].Value|[0]\n  }' --output json > \"$OUTPUT_DIR\u002Fvpcs.json\"\n\necho \"--- Security Groups ---\"\naws ec2 describe-security-groups \\\n  --query 'SecurityGroups[*].{\n    GroupId:GroupId,\n    GroupName:GroupName,\n    VpcId:VpcId,\n    Description:Description,\n    IngressRuleCount:length(IpPermissions),\n    EgressRuleCount:length(IpPermissionsEgress)\n  }' --output json > \"$OUTPUT_DIR\u002Fsecurity-groups.json\"\n\n# IAM Users and Roles\necho \"--- IAM Users ---\"\naws iam list-users \\\n  --query 'Users[*].{UserName:UserName,Created:CreateDate,PasswordLastUsed:PasswordLastUsed}' \\\n  --output json > \"$OUTPUT_DIR\u002Fiam-users.json\"\n\necho \"--- IAM Roles ---\"\naws iam list-roles \\\n  --query 'Roles[*].{RoleName:RoleName,Created:CreateDate,LastUsed:RoleLastUsed.LastUsedDate}' \\\n  --output json > \"$OUTPUT_DIR\u002Fiam-roles.json\"\n\n# EKS Clusters\necho \"--- EKS Clusters ---\"\naws eks list-clusters --query 'clusters' --output json | jq -r '.[]' | while read -r cluster; do\n  aws eks describe-cluster --name \"$cluster\" \\\n    --query 'cluster.{Name:name,Version:version,Status:status,Endpoint:endpoint,Created:createdAt}'\ndone | jq -s '.' > \"$OUTPUT_DIR\u002Feks-clusters.json\" 2>\u002Fdev\u002Fnull\n\n# KMS Keys\necho \"--- KMS Keys ---\"\naws kms list-keys --query 'Keys[*].KeyId' --output text | tr '\\t' '\\n' | while read -r key_id; do\n  aws kms describe-key --key-id \"$key_id\" \\\n    --query 'KeyMetadata.{KeyId:KeyId,Description:Description,State:KeyState,Created:CreationDate,Manager:KeyManager}' 2>\u002Fdev\u002Fnull\ndone | jq -s '.' > \"$OUTPUT_DIR\u002Fkms-keys.json\"\n\n# Generate summary\necho \"=== Inventory Summary ===\"\necho \"EC2 Instances: $(jq 'length' \"$OUTPUT_DIR\u002Fec2-instances.json\")\"\necho \"RDS Instances: $(jq 'length' \"$OUTPUT_DIR\u002Frds-instances.json\")\"\necho \"S3 Buckets: $(jq 'length' \"$OUTPUT_DIR\u002Fs3-buckets.json\")\"\necho \"Lambda Functions: $(jq 'length' \"$OUTPUT_DIR\u002Flambda-functions.json\")\"\necho \"VPCs: $(jq 'length' \"$OUTPUT_DIR\u002Fvpcs.json\")\"\necho \"Security Groups: $(jq 'length' \"$OUTPUT_DIR\u002Fsecurity-groups.json\")\"\necho \"IAM Users: $(jq 'length' \"$OUTPUT_DIR\u002Fiam-users.json\")\"\necho \"IAM Roles: $(jq 'length' \"$OUTPUT_DIR\u002Fiam-roles.json\")\"\n\necho \"Inventory saved to $OUTPUT_DIR\"\n```\n\n## AWS Config Rules for Inventory Compliance\n\n```bash\n# Enable AWS Config recorder\naws configservice put-configuration-recorder \\\n  --configuration-recorder name=default,roleARN=arn:aws:iam::123456789012:role\u002Faws-config-role \\\n  --recording-group allSupported=true,includeGlobalResourceTypes=true\n\n# Start recording\naws configservice start-configuration-recorder --configuration-recorder-name default\n\n# Enable required-tags Config rule\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"required-tags\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"REQUIRED_TAGS\"\n  },\n  \"InputParameters\": \"{\\\"tag1Key\\\":\\\"Owner\\\",\\\"tag2Key\\\":\\\"Environment\\\",\\\"tag3Key\\\":\\\"CostCenter\\\",\\\"tag4Key\\\":\\\"DataClassification\\\"}\",\n  \"Scope\": {\n    \"ComplianceResourceTypes\": [\n      \"AWS::EC2::Instance\",\n      \"AWS::RDS::DBInstance\",\n      \"AWS::S3::Bucket\",\n      \"AWS::Lambda::Function\"\n    ]\n  }\n}'\n\n# Config rule for encryption compliance\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"encrypted-volumes\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"ENCRYPTED_VOLUMES\"\n  }\n}'\n\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"rds-storage-encrypted\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"RDS_STORAGE_ENCRYPTED\"\n  }\n}'\n\naws configservice put-config-rule --config-rule '{\n  \"ConfigRuleName\": \"s3-bucket-server-side-encryption-enabled\",\n  \"Source\": {\n    \"Owner\": \"AWS\",\n    \"SourceIdentifier\": \"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED\"\n  }\n}'\n\n# Query AWS Config for all resources of a type\naws configservice list-discovered-resources --resource-type AWS::EC2::Instance\naws configservice list-discovered-resources --resource-type AWS::RDS::DBInstance\n\n# Advanced query with AWS Config SQL\naws configservice select-resource-config \\\n  --expression \"SELECT resourceId, resourceType, tags, configuration.instanceType\n                WHERE resourceType = 'AWS::EC2::Instance'\n                AND tags.tag('Environment') = 'production'\"\n\n# Get compliance summary\naws configservice get-compliance-summary-by-config-rule\naws configservice get-compliance-summary-by-resource-type\n```\n\n## Tagging Enforcement\n\n```yaml\n# AWS Tag Policy (applied via AWS Organizations)\ntag_policy:\n  tags:\n    Owner:\n      tag_key:\n        \"@@assign\": \"Owner\"\n      enforced_for:\n        \"@@assign\":\n          - \"ec2:instance\"\n          - \"rds:db\"\n          - \"s3:bucket\"\n          - \"lambda:function\"\n\n    Environment:\n      tag_key:\n        \"@@assign\": \"Environment\"\n      tag_value:\n        \"@@assign\":\n          - \"production\"\n          - \"staging\"\n          - \"development\"\n          - \"sandbox\"\n\n    DataClassification:\n      tag_key:\n        \"@@assign\": \"DataClassification\"\n      tag_value:\n        \"@@assign\":\n          - \"public\"\n          - \"internal\"\n          - \"confidential\"\n          - \"restricted\"\n\n    CostCenter:\n      tag_key:\n        \"@@assign\": \"CostCenter\"\n```\n\n```hcl\n# Terraform - Enforce tags on all resources with default_tags\nprovider \"aws\" {\n  region = \"us-east-1\"\n\n  default_tags {\n    tags = {\n      ManagedBy          = \"terraform\"\n      Environment        = var.environment\n      Owner              = var.team_name\n      CostCenter         = var.cost_center\n      DataClassification = var.data_classification\n    }\n  }\n}\n```\n\n## Multi-Cloud Discovery\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# multi-cloud-discovery.sh - Discover assets across AWS, Azure, and GCP\n\nOUTPUT_DIR=\".\u002Fasset-inventory\u002Fmulti-cloud\u002F$(date +%Y-%m-%d)\"\nmkdir -p \"$OUTPUT_DIR\"\n\necho \"=== Multi-Cloud Asset Discovery ===\"\n\n# AWS - using Resource Groups Tagging API\necho \"--- AWS Resources ---\"\naws resourcegroupstaggingapi get-resources \\\n  --query 'ResourceTagMappingList[*].{ARN:ResourceARN,Tags:Tags}' \\\n  --output json > \"$OUTPUT_DIR\u002Faws-all-resources.json\"\necho \"AWS resources: $(jq 'length' \"$OUTPUT_DIR\u002Faws-all-resources.json\")\"\n\n# Azure - using Resource Graph\necho \"--- Azure Resources ---\"\naz graph query -q \"Resources | project name, type, location, resourceGroup, subscriptionId, tags\" \\\n  --output json > \"$OUTPUT_DIR\u002Fazure-all-resources.json\" 2>\u002Fdev\u002Fnull\n\n# GCP - using Cloud Asset Inventory\necho \"--- GCP Resources ---\"\ngcloud asset search-all-resources \\\n  --scope=\"organizations\u002FORG_ID\" \\\n  --format=json > \"$OUTPUT_DIR\u002Fgcp-all-resources.json\" 2>\u002Fdev\u002Fnull\n\n# Find untagged resources\necho \"=== Untagged Resources ===\"\njq '[.[] | select(.Tags == null or .Tags == [])] | length' \"$OUTPUT_DIR\u002Faws-all-resources.json\"\n\necho \"Discovery complete. Results in $OUTPUT_DIR\"\n```\n\n\n## Contents\n\n- [CMDB Integration](references\u002Fdetails.md)\n- [Asset Inventory Checklist](references\u002Fdetails.md)\n- [Best Practices](references\u002Fdetails.md)\n\n## When to Use\n\n- Building or maintaining an IT asset inventory for compliance frameworks (ISO 27001, SOC 2, FedRAMP)\n- Implementing automated cloud resource discovery across accounts and regions\n- Enforcing tagging standards for cost allocation, ownership, and data classification\n- Integrating asset data with a CMDB for operational workflows\n- Preparing for audits that require a complete system component inventory\n\n## Limitations\n\n- Guidance and checklists only; not legal advice and not a substitute for a qualified auditor.\n- Docs-only import: upstream templates and scripts not bundled.\n\n### Example\n\n```markdown\nMap this skill's control checklist to our current evidence and list gaps.\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n",{"name":5,"risk":43,"source":44,"license":14,"category":45,"metadata":46,"date_added":49,"description":7,"source_repo":50,"source_type":21,"compatibility":51,"license_source":52},"safe","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","security",{"author":47,"version":48},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Checklist and framework guidance; no privileged tooling required. Apply controls through your own change process.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fasset-inventory","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill asset-inventory",{"tool":64,"command":65},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill asset-inventory",{"tool":67,"command":68},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill asset-inventory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fasset-inventory\u002FSKILL.md",true,[72],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fdetails.md","REFERENCE","参考文档",5165,"https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fasset-inventory\u002Freferences\u002Fdetails.md",[79,107,131,153,181,205],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":90,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[85],{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[91,92,93,94,95,96,81,97,34,98,99,100,21,28,101,102,103,104,105,106],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","access","configure","only","active","critical","scope","scripts","relevant","implementing",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[114,115,116,117,118,119,120,121,122,123,124,125,126,100,127,21,128,129,102,130],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[138,139,140,43,29,141,142,35,143,144,145,146,147,21,28,148,149,150,151,152],"transcript","youtube transcript","youtube","codex","research","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":170,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[159,162,165],{"categoryNo":160,"categoryName":161,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":163,"categoryName":164,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":166,"categoryName":167,"taxonomyType":168,"taxonomyTypeDesc":169},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[138,139,140,171,43,172,29,141,35,173,174,175,176,145,177,21,28,178,179,180],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":191,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[187,190],{"categoryNo":188,"categoryName":189,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":163,"categoryName":164,"taxonomyType":88,"taxonomyTypeDesc":89},[140,192,193,118,43,194,195,196,197,35,175,198,199,200,201,28,202,148,203,204],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":212,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[211],{"categoryNo":160,"categoryName":161,"taxonomyType":88,"taxonomyTypeDesc":89},[213,140,214,215,43,172,173,216,217,174,175,176,145,218,177,21,28,178,219,151],"youtube full","full","google","server","dlp","credits","automatic"]