[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ESEWB2R1QZ50AMZZPB76C8":3,"skill-same:01M6ESEWB2R1QZ50AMZZPB76C8":104},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6ESEWB2R1QZ50AMZZPB76C8","building-role-mining-for-rbac-optimization",null,"Apply bottom-up and top-down role mining techniques to discover optimal RBAC roles from existing user-permission assignments, reducing role explosion and enforcing least privilege.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"rbac","Optimization","building role mining for rbac optimization","clustering","roles","control","discover","permission","up","user","management","access","cybersecurity","role-mining","identity-governance","least-privilege","access-control","governance","identity","2026-11-10 10:12:30",false,"---\nname: building-role-mining-for-rbac-optimization\ndescription: Apply bottom-up and top-down role mining techniques to discover optimal RBAC roles from existing user-permission assignments, reducing role explosion and enforcing least privilege.\ndomain: cybersecurity\nsubdomain: identity-access-management\ntags: [rbac, role-mining, identity-governance, access-control, least-privilege, clustering]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n\n# Building Role Mining for RBAC Optimization\n\n## Overview\n\nRole mining is the process of analyzing existing user-permission assignments to discover optimal roles for a Role-Based Access Control (RBAC) system. Organizations accumulate excessive permissions over time through job changes, project assignments, and ad-hoc access grants, leading to \"role explosion\" where thousands of granular roles exist with significant overlap. Role mining uses data analysis -- including clustering algorithms, formal concept analysis, and graph-based methods -- to consolidate permissions into a minimal set of roles that accurately represent business functions while enforcing least privilege.\n\n\n## When to Use\n\n- When deploying or configuring building role mining for rbac optimization capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Export of current user-permission assignments (CSV\u002Fdatabase)\n- Identity governance platform or directory service access\n- Python 3.9+ with pandas, scikit-learn, numpy\n- Understanding of organizational structure and job functions\n- Stakeholder access for role validation workshops\n\n## Core Concepts\n\n### Role Mining Approaches\n\n| Approach | Description | Best For |\n|----------|-------------|----------|\n| Bottom-Up | Analyze existing permissions to discover common patterns | Large datasets with organic permission growth |\n| Top-Down | Design roles from business requirements and job descriptions | Greenfield RBAC or organizational restructuring |\n| Hybrid | Combine bottom-up analysis with top-down business validation | Most production environments |\n\n### Role Mining Algorithms\n\n**1. Permission Clustering**: Group users with similar permission sets using k-means or hierarchical clustering. Users in the same cluster share a common role.\n\n**2. Formal Concept Analysis (FCA)**: Mathematical framework that identifies complete set of concepts (user groups sharing exact permission sets) from a binary user-permission matrix.\n\n**3. Graph-Based Mining**: Model users and permissions as a bipartite graph, then find dense subgraphs representing candidate roles.\n\n**4. Boolean Matrix Decomposition**: Decompose the user-permission matrix U into U ≈ R × P where R maps users to roles and P maps roles to permissions.\n\n### Role Mining Metrics\n\n| Metric | Formula | Target |\n|--------|---------|--------|\n| Role Count | Total distinct roles after mining | Minimize |\n| Coverage | Permissions explained by mined roles \u002F Total permissions | > 95% |\n| Weighted Structural Complexity (WSC) | Sum of role-user + role-permission assignments | Minimize |\n| Deviation | Extra permissions not covered by assigned roles | \u003C 5% |\n\n## Workflow\n\n### Step 1: Extract User-Permission Data\n\nCollect the current access state from all identity sources:\n\n```python\nimport pandas as pd\nimport numpy as np\n\n# Load user-permission assignments\n# Format: user_id, permission_id (one row per assignment)\nassignments = pd.read_csv(\"user_permissions.csv\")\n\n# Create binary user-permission matrix (UPA matrix)\nupa_matrix = assignments.pivot_table(\n    index=\"user_id\",\n    columns=\"permission_id\",\n    aggfunc=\"size\",\n    fill_value=0\n)\nupa_matrix = (upa_matrix > 0).astype(int)\n\nprint(f\"Users: {upa_matrix.shape[0]}\")\nprint(f\"Permissions: {upa_matrix.shape[1]}\")\nprint(f\"Assignments: {assignments.shape[0]}\")\nprint(f\"Density: {upa_matrix.values.sum() \u002F upa_matrix.size:.2%}\")\n```\n\n### Step 2: Bottom-Up Role Discovery Using Clustering\n\n```python\nfrom sklearn.cluster import AgglomerativeClustering\nfrom sklearn.metrics import silhouette_score\n\ndef find_optimal_clusters(matrix, max_k=50):\n    \"\"\"Find optimal number of roles using silhouette analysis.\"\"\"\n    scores = []\n    for k in range(2, min(max_k, matrix.shape[0])):\n        clustering = AgglomerativeClustering(\n            n_clusters=k, metric=\"jaccard\", linkage=\"average\"\n        )\n        labels = clustering.fit_predict(matrix)\n        score = silhouette_score(matrix, labels, metric=\"jaccard\")\n        scores.append((k, score))\n\n    optimal_k = max(scores, key=lambda x: x[1])[0]\n    return optimal_k, scores\n\ndef mine_roles_clustering(upa_matrix, n_clusters):\n    \"\"\"Mine roles using hierarchical clustering on Jaccard distance.\"\"\"\n    clustering = AgglomerativeClustering(\n        n_clusters=n_clusters, metric=\"jaccard\", linkage=\"average\"\n    )\n    user_matrix = upa_matrix.values\n    labels = clustering.fit_predict(user_matrix)\n\n    roles = {}\n    for cluster_id in range(n_clusters):\n        cluster_users = upa_matrix.index[labels == cluster_id]\n        cluster_permissions = upa_matrix.loc[cluster_users]\n\n        # Core role = permissions held by >80% of cluster members\n        permission_frequency = cluster_permissions.mean()\n        core_permissions = permission_frequency[permission_frequency >= 0.8].index.tolist()\n\n        roles[f\"Role_{cluster_id}\"] = {\n            \"permissions\": core_permissions,\n            \"user_count\": len(cluster_users),\n            \"users\": cluster_users.tolist(),\n            \"coverage\": permission_frequency[permission_frequency >= 0.8].mean()\n        }\n\n    return roles, labels\n```\n\n### Step 3: Formal Concept Analysis\n\n```python\ndef mine_roles_fca(upa_matrix, min_support=3):\n    \"\"\"Mine roles using Formal Concept Analysis (frequent closed itemsets).\"\"\"\n    from itertools import combinations\n\n    users = upa_matrix.index.tolist()\n    permissions = upa_matrix.columns.tolist()\n\n    concepts = []\n\n    # Find all maximal permission sets shared by at least min_support users\n    for size in range(len(permissions), 0, -1):\n        for perm_combo in combinations(permissions, size):\n            perm_set = set(perm_combo)\n            # Find users who have ALL permissions in this set\n            matching_users = []\n            for user in users:\n                user_perms = set(upa_matrix.columns[upa_matrix.loc[user] == 1])\n                if perm_set.issubset(user_perms):\n                    matching_users.append(user)\n\n            if len(matching_users) >= min_support:\n                # Check if this is a closed concept (no superset with same extent)\n                is_closed = True\n                for concept in concepts:\n                    if set(matching_users) == set(concept[\"users\"]) and \\\n                       perm_set.issubset(set(concept[\"permissions\"])):\n                        is_closed = False\n                        break\n\n                if is_closed:\n                    concepts.append({\n                        \"permissions\": list(perm_set),\n                        \"users\": matching_users,\n                        \"support\": len(matching_users)\n                    })\n\n        if len(concepts) > 100:  # Limit for performance\n            break\n\n    return concepts\n```\n\n### Step 4: Evaluate and Select Roles\n\n```python\ndef evaluate_role_set(roles, upa_matrix):\n    \"\"\"Evaluate the quality of a mined role set.\"\"\"\n    total_assignments = upa_matrix.values.sum()\n    covered_assignments = 0\n    extra_assignments = 0\n\n    for role_name, role_data in roles.items():\n        role_perms = set(role_data[\"permissions\"])\n        for user in role_data[\"users\"]:\n            user_perms = set(upa_matrix.columns[upa_matrix.loc[user] == 1])\n            covered = role_perms.intersection(user_perms)\n            extra = role_perms - user_perms\n            covered_assignments += len(covered)\n            extra_assignments += len(extra)\n\n    metrics = {\n        \"total_roles\": len(roles),\n        \"total_assignments\": total_assignments,\n        \"covered_assignments\": covered_assignments,\n        \"coverage_rate\": covered_assignments \u002F total_assignments if total_assignments else 0,\n        \"extra_permissions\": extra_assignments,\n        \"deviation_rate\": extra_assignments \u002F (covered_assignments + extra_assignments) if (covered_assignments + extra_assignments) else 0,\n        \"avg_role_size\": np.mean([len(r[\"permissions\"]) for r in roles.values()]),\n        \"avg_users_per_role\": np.mean([r[\"user_count\"] for r in roles.values()]),\n    }\n    return metrics\n```\n\n### Step 5: Business Validation\n\nAfter mining candidate roles:\n\n1. Map mined roles to business functions (department, job title)\n2. Conduct workshops with business unit managers to validate role definitions\n3. Identify outlier permissions that indicate misconfiguration\n4. Refine roles based on feedback and re-evaluate metrics\n5. Document role definitions with business justification\n\n## Validation Checklist\n\n- [ ] User-permission matrix extracted from all identity sources\n- [ ] Multiple mining algorithms compared (clustering, FCA)\n- [ ] Optimal role count determined via silhouette analysis or WSC\n- [ ] Coverage rate exceeds 95% of existing assignments\n- [ ] Deviation rate below 5% (minimal extra permissions)\n- [ ] Mined roles validated with business stakeholders\n- [ ] Role hierarchy defined (parent-child inheritance)\n- [ ] Exception\u002Foutlier permissions documented\n- [ ] Migration plan created for transitioning to new role model\n- [ ] Ongoing role governance process defined\n\n## References\n\n- [Role Mining: Optimizing RBAC - NIST](https:\u002F\u002Fcsrc.nist.gov\u002Fprojects\u002Frole-based-access-control)\n- [RBAC Standard - ANSI\u002FINCITS 359-2012](https:\u002F\u002Fwww.incits.org\u002F)\n- [Formal Concept Analysis for Role Engineering](https:\u002F\u002Flink.springer.com\u002Fchapter\u002F10.1007\u002F978-3-540-73070-6_7)\n- [scikit-learn Clustering Documentation](https:\u002F\u002Fscikit-learn.org\u002Fstable\u002Fmodules\u002Fclustering.html)\n","# Building Role Mining for RBAC Optimization\n\n## Overview\n\nRole mining is the process of analyzing existing user-permission assignments to discover optimal roles for a Role-Based Access Control (RBAC) system. Organizations accumulate excessive permissions over time through job changes, project assignments, and ad-hoc access grants, leading to \"role explosion\" where thousands of granular roles exist with significant overlap. Role mining uses data analysis -- including clustering algorithms, formal concept analysis, and graph-based methods -- to consolidate permissions into a minimal set of roles that accurately represent business functions while enforcing least privilege.\n\n\n## When to Use\n\n- When deploying or configuring building role mining for rbac optimization capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Export of current user-permission assignments (CSV\u002Fdatabase)\n- Identity governance platform or directory service access\n- Python 3.9+ with pandas, scikit-learn, numpy\n- Understanding of organizational structure and job functions\n- Stakeholder access for role validation workshops\n\n## Core Concepts\n\n### Role Mining Approaches\n\n| Approach | Description | Best For |\n|----------|-------------|----------|\n| Bottom-Up | Analyze existing permissions to discover common patterns | Large datasets with organic permission growth |\n| Top-Down | Design roles from business requirements and job descriptions | Greenfield RBAC or organizational restructuring |\n| Hybrid | Combine bottom-up analysis with top-down business validation | Most production environments |\n\n### Role Mining Algorithms\n\n**1. Permission Clustering**: Group users with similar permission sets using k-means or hierarchical clustering. Users in the same cluster share a common role.\n\n**2. Formal Concept Analysis (FCA)**: Mathematical framework that identifies complete set of concepts (user groups sharing exact permission sets) from a binary user-permission matrix.\n\n**3. Graph-Based Mining**: Model users and permissions as a bipartite graph, then find dense subgraphs representing candidate roles.\n\n**4. Boolean Matrix Decomposition**: Decompose the user-permission matrix U into U ≈ R × P where R maps users to roles and P maps roles to permissions.\n\n### Role Mining Metrics\n\n| Metric | Formula | Target |\n|--------|---------|--------|\n| Role Count | Total distinct roles after mining | Minimize |\n| Coverage | Permissions explained by mined roles \u002F Total permissions | > 95% |\n| Weighted Structural Complexity (WSC) | Sum of role-user + role-permission assignments | Minimize |\n| Deviation | Extra permissions not covered by assigned roles | \u003C 5% |\n\n## Workflow\n\n### Step 1: Extract User-Permission Data\n\nCollect the current access state from all identity sources:\n\n```python\nimport pandas as pd\nimport numpy as np\n\n# Load user-permission assignments\n# Format: user_id, permission_id (one row per assignment)\nassignments = pd.read_csv(\"user_permissions.csv\")\n\n# Create binary user-permission matrix (UPA matrix)\nupa_matrix = assignments.pivot_table(\n    index=\"user_id\",\n    columns=\"permission_id\",\n    aggfunc=\"size\",\n    fill_value=0\n)\nupa_matrix = (upa_matrix > 0).astype(int)\n\nprint(f\"Users: {upa_matrix.shape[0]}\")\nprint(f\"Permissions: {upa_matrix.shape[1]}\")\nprint(f\"Assignments: {assignments.shape[0]}\")\nprint(f\"Density: {upa_matrix.values.sum() \u002F upa_matrix.size:.2%}\")\n```\n\n### Step 2: Bottom-Up Role Discovery Using Clustering\n\n```python\nfrom sklearn.cluster import AgglomerativeClustering\nfrom sklearn.metrics import silhouette_score\n\ndef find_optimal_clusters(matrix, max_k=50):\n    \"\"\"Find optimal number of roles using silhouette analysis.\"\"\"\n    scores = []\n    for k in range(2, min(max_k, matrix.shape[0])):\n        clustering = AgglomerativeClustering(\n            n_clusters=k, metric=\"jaccard\", linkage=\"average\"\n        )\n        labels = clustering.fit_predict(matrix)\n        score = silhouette_score(matrix, labels, metric=\"jaccard\")\n        scores.append((k, score))\n\n    optimal_k = max(scores, key=lambda x: x[1])[0]\n    return optimal_k, scores\n\ndef mine_roles_clustering(upa_matrix, n_clusters):\n    \"\"\"Mine roles using hierarchical clustering on Jaccard distance.\"\"\"\n    clustering = AgglomerativeClustering(\n        n_clusters=n_clusters, metric=\"jaccard\", linkage=\"average\"\n    )\n    user_matrix = upa_matrix.values\n    labels = clustering.fit_predict(user_matrix)\n\n    roles = {}\n    for cluster_id in range(n_clusters):\n        cluster_users = upa_matrix.index[labels == cluster_id]\n        cluster_permissions = upa_matrix.loc[cluster_users]\n\n        # Core role = permissions held by >80% of cluster members\n        permission_frequency = cluster_permissions.mean()\n        core_permissions = permission_frequency[permission_frequency >= 0.8].index.tolist()\n\n        roles[f\"Role_{cluster_id}\"] = {\n            \"permissions\": core_permissions,\n            \"user_count\": len(cluster_users),\n            \"users\": cluster_users.tolist(),\n            \"coverage\": permission_frequency[permission_frequency >= 0.8].mean()\n        }\n\n    return roles, labels\n```\n\n### Step 3: Formal Concept Analysis\n\n```python\ndef mine_roles_fca(upa_matrix, min_support=3):\n    \"\"\"Mine roles using Formal Concept Analysis (frequent closed itemsets).\"\"\"\n    from itertools import combinations\n\n    users = upa_matrix.index.tolist()\n    permissions = upa_matrix.columns.tolist()\n\n    concepts = []\n\n    # Find all maximal permission sets shared by at least min_support users\n    for size in range(len(permissions), 0, -1):\n        for perm_combo in combinations(permissions, size):\n            perm_set = set(perm_combo)\n            # Find users who have ALL permissions in this set\n            matching_users = []\n            for user in users:\n                user_perms = set(upa_matrix.columns[upa_matrix.loc[user] == 1])\n                if perm_set.issubset(user_perms):\n                    matching_users.append(user)\n\n            if len(matching_users) >= min_support:\n                # Check if this is a closed concept (no superset with same extent)\n                is_closed = True\n                for concept in concepts:\n                    if set(matching_users) == set(concept[\"users\"]) and \\\n                       perm_set.issubset(set(concept[\"permissions\"])):\n                        is_closed = False\n                        break\n\n                if is_closed:\n                    concepts.append({\n                        \"permissions\": list(perm_set),\n                        \"users\": matching_users,\n                        \"support\": len(matching_users)\n                    })\n\n        if len(concepts) > 100:  # Limit for performance\n            break\n\n    return concepts\n```\n\n### Step 4: Evaluate and Select Roles\n\n```python\ndef evaluate_role_set(roles, upa_matrix):\n    \"\"\"Evaluate the quality of a mined role set.\"\"\"\n    total_assignments = upa_matrix.values.sum()\n    covered_assignments = 0\n    extra_assignments = 0\n\n    for role_name, role_data in roles.items():\n        role_perms = set(role_data[\"permissions\"])\n        for user in role_data[\"users\"]:\n            user_perms = set(upa_matrix.columns[upa_matrix.loc[user] == 1])\n            covered = role_perms.intersection(user_perms)\n            extra = role_perms - user_perms\n            covered_assignments += len(covered)\n            extra_assignments += len(extra)\n\n    metrics = {\n        \"total_roles\": len(roles),\n        \"total_assignments\": total_assignments,\n        \"covered_assignments\": covered_assignments,\n        \"coverage_rate\": covered_assignments \u002F total_assignments if total_assignments else 0,\n        \"extra_permissions\": extra_assignments,\n        \"deviation_rate\": extra_assignments \u002F (covered_assignments + extra_assignments) if (covered_assignments + extra_assignments) else 0,\n        \"avg_role_size\": np.mean([len(r[\"permissions\"]) for r in roles.values()]),\n        \"avg_users_per_role\": np.mean([r[\"user_count\"] for r in roles.values()]),\n    }\n    return metrics\n```\n\n### Step 5: Business Validation\n\nAfter mining candidate roles:\n\n1. Map mined roles to business functions (department, job title)\n2. Conduct workshops with business unit managers to validate role definitions\n3. Identify outlier permissions that indicate misconfiguration\n4. Refine roles based on feedback and re-evaluate metrics\n5. Document role definitions with business justification\n\n## Validation Checklist\n\n- [ ] User-permission matrix extracted from all identity sources\n- [ ] Multiple mining algorithms compared (clustering, FCA)\n- [ ] Optimal role count determined via silhouette analysis or WSC\n- [ ] Coverage rate exceeds 95% of existing assignments\n- [ ] Deviation rate below 5% (minimal extra permissions)\n- [ ] Mined roles validated with business stakeholders\n- [ ] Role hierarchy defined (parent-child inheritance)\n- [ ] Exception\u002Foutlier permissions documented\n- [ ] Migration plan created for transitioning to new role model\n- [ ] Ongoing role governance process defined\n\n## References\n\n- [Role Mining: Optimizing RBAC - NIST](https:\u002F\u002Fcsrc.nist.gov\u002Fprojects\u002Frole-based-access-control)\n- [RBAC Standard - ANSI\u002FINCITS 359-2012](https:\u002F\u002Fwww.incits.org\u002F)\n- [Formal Concept Analysis for Role Engineering](https:\u002F\u002Flink.springer.com\u002Fchapter\u002F10.1007\u002F978-3-540-73070-6_7)\n- [scikit-learn Clustering Documentation](https:\u002F\u002Fscikit-learn.org\u002Fstable\u002Fmodules\u002Fclustering.html)\n",{"name":5,"tags":43,"author":44,"domain":31,"license":15,"version":45,"subdomain":46,"description":7},[19,32,33,35,34,22],"mahipal","1.0","identity-access-management","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill building-role-mining-for-rbac-optimization",{"tool":61,"command":62},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill building-role-mining-for-rbac-optimization",{"tool":64,"command":65},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill building-role-mining-for-rbac-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002FSKILL.md",true,[69,75,80,86,90,94,100],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Ftemplate.md","ASSET","资产文件",1364,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Fassets\u002Ftemplate.md",{"path":76,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002FLICENSE",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fapi-reference.md","REFERENCE","参考文档",1745,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fapi-reference.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fstandards.md",1686,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fstandards.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fworkflows.md",3002,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fworkflows.md",{"path":95,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fagent.py","SCRIPT","脚本",6539,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Fscripts\u002Fagent.py",{"path":101,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fprocess.py",9486,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F21-external-registries\u002F08-pinkpixel-collection\u002Fbuilding-role-mining-for-rbac-optimization\u002Fscripts\u002Fprocess.py",[105,133,150,180,213,250],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],"write","contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":38},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":161,"publishedAt":38},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[156],{"categoryNo":157,"categoryName":158,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[162,163,164,165,166,167,168,169,141,170,171,172,113,173,174,175,176,177,178,179],"build","solo","solo build","MCP","workflow","commit","tasks","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":192,"publishedAt":38},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[186,189],{"categoryNo":187,"categoryName":188,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000005","邮件与沟通",{"categoryNo":190,"categoryName":191,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000009","前端开发",[193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","use","html","resend","visual","emails","rendering","with",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":231,"publishedAt":38},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[219,222,225,226],{"categoryNo":220,"categoryName":221,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":223,"categoryName":224,"taxonomyType":159,"taxonomyTypeDesc":160},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":157,"categoryName":158,"taxonomyType":159,"taxonomyTypeDesc":160},{"categoryNo":227,"categoryName":228,"taxonomyType":229,"taxonomyTypeDesc":230},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249],"testing","api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":251,"name":252,"nameZh":6,"description":253,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":254,"categories":255,"keywords":256,"publishedAt":38},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[171,257,258,259,260,261,262,119,263,264,265,266,267,206,268,269,212,270],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]