[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74QM0DWX0AFGQZQ33CTJ4K7":3,"skill-same:01M74QM0DWX0AFGQZQ33CTJ4K7":90},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":36,"commitSha":37,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M74QM0DWX0AFGQZQ33CTJ4K7","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.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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":25,"author":32,"domain":33,"license":15,"version":34,"subdomain":35,"description":7},[26,27,28,29,30,31],"rbac","role-mining","identity-governance","access-control","least-privilege","clustering","mahipal","cybersecurity","1.0","identity-access-management","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill building-role-mining-for-rbac-optimization",{"tool":48,"command":49},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill building-role-mining-for-rbac-optimization",{"tool":51,"command":52},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill building-role-mining-for-rbac-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002FSKILL.md",true,[56,62,66,72,76,80,86],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"assets\u002Ftemplate.md","ASSET","资产文件",1364,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Fassets\u002Ftemplate.md",{"path":63,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fapi-reference.md","REFERENCE","参考文档",1745,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fapi-reference.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fstandards.md",1686,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fstandards.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fworkflows.md",3002,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Freferences\u002Fworkflows.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fagent.py","SCRIPT","脚本",6539,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Fscripts\u002Fagent.py",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fprocess.py",9486,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fbuilding-role-mining-for-rbac-optimization\u002Fscripts\u002Fprocess.py",[91,99,106,113,120,127],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]