Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

github-agentic-workflowsGitHub agentic workflows 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

285

周安装

12

GitHub Stars

219

下载量

2
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-agentic-workflows(GitHub agentic workflows 搜索)
来源仓库:https://github.com/hack23/cia
仓库路径:skills/github-agentic-workflows
安装命令:
npx skills add https://github.com/hack23/cia --skill github-agentic-workflows
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hack23/cia --skill github-agentic-workflows

简介

搜索 GitHub 上成功的智能代理工作流案例。

  • 发现可复用的自动化模式和最佳实践。
  • 聚合社区共享的工具链和插件组合。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 仅索引公开仓库内容不访问私有信息。
  • 按主题分类便于定向查找资源。github-agentic-workflows 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

GitHub Agentic Workflows Skill

Purpose

This skill provides comprehensive guidance for creating, deploying, and securing GitHub Agentic Workflows - AI-powered automations that autonomously reason, make decisions, and take actions using natural language instructions within GitHub Actions infrastructure.

When to Use This Skill

Apply this skill when:

  • ✅ Creating AI-driven automation workflows for CI/CD, issue triage, code review, or repository management
  • ✅ Implementing multi-agent orchestration with specialized workers
  • ✅ Integrating MCP (Model Context Protocol) tools for GitHub operations, web access, or custom APIs
  • ✅ Designing secure agentic systems with safe inputs/outputs and defense-in-depth
  • ✅ Building continuous AI patterns for documentation, code quality, or security scanning
  • ✅ Migrating from traditional GitHub Actions to agentic workflows
  • ✅ Implementing orchestrator/worker patterns for complex multi-step tasks

Do NOT use for:

  • ❌ Simple shell script automation (use traditional GitHub Actions)
  • ❌ Workflows requiring deterministic, fixed execution paths without AI decision-making
  • ❌ High-security operations requiring 100% predictability (agentic workflows adapt based on context)

Core Concepts

What Makes Workflows "Agentic"

Agentic means having agency - the ability to act independently, make context-aware decisions, and adapt behavior based on circumstances.

Traditional WorkflowsAgentic Workflows
Pre-programmed if/then logicAI-driven decision-making
Fixed execution sequencesContext-aware adaptation
Brittle when input variesFlexible response to situations
Requires explicit conditionalsNatural language instructions
YAML-heavy configurationMarkdown-based specifications

Example:

  • Traditional: "If issue has label 'bug', assign to team A, else if label 'feature', assign to team B"
  • Agentic: "Analyze this issue and provide helpful triage. Assign to the most appropriate team based on content and expertise"

Workflow Structure

Every agentic workflow consists of two parts:

  1. Frontmatter (YAML between --- markers) - Technical configuration
  2. Markdown Instructions - Natural language task descriptions
---
on: issues
permissions: read-all
tools:
  github:
engine: copilot
---

# Issue Triage

Analyze this issue and provide helpful context:
- Identify the component or module affected
- Suggest relevant labels based on content
- Check for similar existing issues
- Recommend assignees based on expertise

Model Context Protocol (MCP)

MCP provides a standardized interface for connecting AI agents to external tools, databases, and services with shared context across multi-step tasks.

MCP Architecture

graph TB
    A[Agentic Workflow] --> B[MCP Client]
    B --> C[MCP Gateway]
    C --> D[GitHub MCP Server]
    C --> E[Filesystem MCP Server]
    C --> F[Web MCP Server]
    C --> G[Custom MCP Server]
    D --> H[GitHub API Operations]
    E --> I[File System Access]
    F --> J[Web Fetch/Search]
    G --> K[Custom Integrations]

Tool Configuration

---
tools:
  github:
    toolsets:
      - repos      # Repository operations
      - issues     # Issue management
      - pull_requests  # PR operations

  bash:
    allowed-commands:
      - npm test
      - mvn clean install

  web-fetch:
    max-fetches: 5

  playwright:
    browser: chromium
---

MCP Toolsets

ToolsetPurposeKey Capabilities
contextRepository metadataget_repository, get_readme
reposRepository operationscreate_file, update_file, search_code
issuesIssue managementcreate_issue, update_issue, list_issues
pull_requestsPR operationscreate_pull_request, merge_pull_request
actionsGitHub Actionslist_workflows, trigger_workflow
securitySecurity scanningCodeQL, Dependabot alerts
projectsGitHub Projects V2projects_list, projects_write

Orchestration Patterns

1. Single Agent Pattern

Use Case: Simple, atomic tasks that one agent can handle independently.

---
on: pull_request
permissions: read-all
tools:
  github:
    toolsets: [pull_requests, repos]
---

# PR Code Review

Review this pull request for:
- Code quality and maintainability
- Security vulnerabilities (OWASP Top 10)
- Test coverage completeness
- Documentation updates needed

Provide constructive feedback as PR comments.

Benefits:

  • ✅ Simple, reliable execution
  • ✅ Fast response time
  • ✅ Easy to debug and test

2. Handoff Pattern

Use Case: Specialized, phased tasks where agents transfer context between steps.

---
on: issues
permissions: read-all
tools:
  github:
    toolsets: [issues, repos]
safe-outputs:
  dispatch-workflow:
    workflows:
      - security-analysis.md
      - code-review.md
---

# Issue Triage Orchestrator

Analyze this issue:
1. Determine issue type (bug, feature, security, documentation)
2. Extract technical requirements
3. Dispatch to specialized worker based on type:
   - Security issues → security-analysis workflow
   - Code changes → code-review workflow
   - Documentation → doc-update workflow

Benefits:

  • ✅ Modular, reusable components
  • ✅ Clear separation of concerns
  • ✅ Specialized expertise per phase

3. Reflection Pattern

Use Case: Quality assurance where agents review and critique their own or others' outputs.

---
on: workflow_dispatch
permissions: read-all
tools:
  github:
    toolsets: [repos, pull_requests]
---

# Self-Reviewing Documentation Generator

1. Generate documentation for all classes in src/main/java
2. Review generated documentation for:
   - Clarity and completeness
   - Technical accuracy
   - Proper formatting
   - Missing edge cases
3. Iterate and improve based on self-review
4. Create pull request with final documentation

Benefits:

  • ✅ Improved accuracy
  • ✅ Reduced hallucination risk
  • ✅ Self-correcting behavior

4. Magnetic Orchestration Pattern

Use Case: Complex, multi-domain tasks requiring parallel collaboration and central coordination.

---
on: schedule
permissions: read-all
tools:
  github:
    toolsets: [repos, issues, pull_requests, security]
safe-outputs:
  create-issue:
    max: 10
  dispatch-workflow:
    workflows:
      - code-quality-worker.md
      - security-scan-worker.md
      - dependency-update-worker.md
---

# Weekly Repository Health Check (Orchestrator)

Coordinate health check across multiple domains:

1. Dispatch parallel workers:
   - code-quality-worker: Analyze code smells, complexity, duplication
   - security-scan-worker: Run CodeQL, dependency checks, secret scanning
   - dependency-update-worker: Check for outdated dependencies

2. Collect results from all workers (via tracker-id correlation)

3. Synthesize comprehensive health report:
   - Aggregate findings by severity
   - Identify cross-cutting concerns
   - Prioritize remediation actions

4. Create issues for critical/high findings
5. Post summary comment on previous week's report issue

Benefits:

  • ✅ Scalability for complex tasks
  • ✅ Parallel execution efficiency
  • ✅ Dynamic composition of specialized agents
  • ✅ Robust decision-making from multiple perspectives

Safe Inputs and Safe Outputs

Security Architecture

GitHub Agentic Workflows implements defense-in-depth security:

flowchart LR
    INPUT["User Input"] --> COMPILE["Compile-time Validation"]
    COMPILE --> RUNTIME["Runtime Isolation"]
    RUNTIME --> PERMS["Permission Separation"]
    PERMS --> THREAT["Threat Detection"]
    THREAT --> SAFEOUT["Safe Outputs"]
    SAFEOUT --> ACTIONS["GitHub Actions"]

Safe Inputs (Validated User Input Tools)

Custom MCP tools defined inline to prevent injection attacks:

---
safe-inputs:
  analyze_repository:
    description: "Analyze a GitHub repository for security issues"
    parameters:
      owner:
        type: string
        description: "Repository owner (e.g., 'Hack23')"
        required: true
      repo:
        type: string
        description: "Repository name (e.g., 'cia')"
        required: true
      branch:
        type: string
        description: "Branch to analyze"
        default: "main"
    implementation: |
      #!/bin/bash
      OWNER="${owner}"
      REPO="${repo}"
      BRANCH="${branch}"

      # Validate inputs
      if [[ ! "$OWNER" =~ ^[a-zA-Z0-9_-]+$ ]]; then
        echo "Invalid owner name"
        exit 1
      fi

      # Perform analysis
      gh api "/repos/$OWNER/$REPO/branches/$BRANCH" | jq '.commit.sha'
---

Benefits:

  • ✅ Lightweight tool creation without external dependencies
  • ✅ Controlled access to secrets via environment variables
  • ✅ Typed input parameters with validation
  • ✅ Runtime generation and mounting as MCP server

Safe Outputs (Pre-approved GitHub Operations)

AI generates structured output describing desired actions; separate permission-controlled jobs execute them.

---
safe-outputs:
  create-issue:
    max: 5
    target-repo: "Hack23/cia"

  create-comment:
    max: 10

  create-pull-request:
    max: 1
    require-approval: true

  create-code-scanning-alert:
    max: 10
    severity: [high, critical]

  update-project:
    github-token: ${{ secrets.GH_AW_PROJECT_TOKEN }}

  upload-asset:
    branch: "assets/workflow-reports"
    max-size: 10240  # 10MB
    allowed-exts: [.png, .jpg, .svg, .pdf]

  minimize-comment:
    max: 5
    target-repo: "Hack23/cia"

  messages:
    run-started: "🤖 Analysis starting! [{workflow_name}]({run_url})"
    run-success: "✅ Analysis complete!"
    run-failure: "❌ Analysis failed - review logs"
    footer: "> *Generated by [{workflow_name}]({run_url})*"
---

Safe Output Types:

Output TypePurposeRequires Permission
create-issueCreate GitHub issuesissues: write (safe output job)
create-commentComment on issues/PRsissues: write (safe output job)
create-pull-requestCreate PRscontents: write (safe output job)
create-code-scanning-alertUpload SARIF security findingssecurity-events: write
update-projectManage Projects V2projects: write
upload-assetStore files in orphaned branchcontents: write
minimize-commentHide/minimize spam commentscontents: write

Threat Detection Layer:

Automated security analysis runs after agent execution but before safe outputs are processed:

---
safe-outputs:
  threat-detection:
    enabled: true
    analyze-instructions: true  # Detect prompt injection
    analyze-patches: true       # Scan code changes
    analyze-secrets: true       # Detect leaked credentials
    analyze-code-quality: true  # Check for malicious patterns

    actions:
      on-threat-detected: fail  # Options: fail, warn, ignore
      notification: true        # Notify on findings
---

Triggers

Event-Based Triggers

---
# Single event
on: issues

# Multiple events
on:
  issues:
    types: [opened, reopened, labeled]
  pull_request:
    types: [opened, synchronize]

# Path filters
on:
  push:
    paths:
      - 'src/**'
      - 'pom.xml'
    branches:
      - main
      - develop
---

Schedule-Based Triggers

---
# Recommended: Human-readable syntax with automatic time scattering
on: daily
on: weekly on monday
on: monthly on 1st

# Alternative: Standard cron (fixed time, Monday 9 AM UTC)
on:
  schedule:
    - cron: "0 9 * * 1"
---

Manual Triggers (workflow_dispatch)

---
on:
  workflow_dispatch:
    inputs:
      organization:
        description: "GitHub organization to scan"
        required: true
        type: string
        default: "Hack23"

      severity:
        description: "Minimum severity level"
        required: false
        type: choice
        options:
          - low
          - medium
          - high
          - critical
        default: "medium"
---

Slash Command Triggers

---
on:
  slash_command:
    command: review
    require_membership: true
---

# Triggered by commenting "/review" on issues or PRs

Permissions

Principle of Least Privilege

Workflows default to read-only access. Grant only necessary permissions:

---
# Read-only (default)
permissions: read-all

# Minimal write permissions
permissions:
  contents: read
  issues: write
  pull-requests: write

# Granular control
permissions:
  contents: read
  issues: write
  pull-requests: write
  security-events: write
  actions: read
  checks: read
---

Permission Separation

The agent runs with read-only permissions. Safe output jobs run with write permissions to execute approved actions:

┌─────────────────────┐
│  Agent Job          │  permissions: read-all
│  (AI Reasoning)     │  tools: github, bash, web-fetch
└──────────┬──────────┘
           │
           │ Outputs structured JSON
           ▼
┌─────────────────────┐
│  Threat Detection   │  Analyzes outputs for security issues
└──────────┬──────────┘
           │
           │ If safe
           ▼
┌─────────────────────┐
│  Safe Output Jobs   │  permissions: issues: write, contents: write
│  (Execution)        │  Applies approved actions
└─────────────────────┘

Network Permissions

Control external domain access:

---
network:
  defaults: true  # Allow common infrastructure (npm, maven, docker hub)

# Custom allow-list
network:
  allowed-domains:
    - "api.github.com"
    - "pypi.org"
    - "registry.npmjs.org"
    - "maven.apache.org"

# No network access
network: {}
---

Compilation and Deployment

Workflow Files

  • .md file - Human-readable source of truth (editable)
  • .lock.yml file - Compiled GitHub Actions YAML (machine-generated, committed)
# Install gh-aw CLI extension
gh extension install github/gh-aw

# Compile workflow
gh aw compile

# Watch for changes and auto-compile
gh aw compile --watch

# Strict validation mode
gh aw compile --strict

# Run workflow locally for testing
gh aw run <workflow-name>

# Check workflow status
gh aw status

# Download and analyze logs
gh aw logs <run-id>

Compilation Process

graph LR
    A[workflow.md] --> B[Parse Frontmatter]
    B --> C[Validate Structure]
    C --> D[Resolve Imports]
    D --> E[Configure Tools/MCP]
    E --> F[Security Hardening]
    F --> G[Generate workflow.lock.yml]
    G --> H[Commit Both Files]

Security Validation

# Run with strict mode for enhanced validation
gh aw compile --strict

# Enable additional security scanners
gh aw compile --strict \
  --security-scanners actionlint,zizmor,poutine

Security Best Practices (OWASP Agentic Top 10 2026)

ASI01: Agent Goal Hijack (Prompt Injection)

Risk: Attacker manipulates natural language instructions to change agent behavior.

Mitigation:

---
# Treat all natural language input as untrusted
safe-outputs:
  threat-detection:
    enabled: true
    analyze-instructions: true

# Restrict agent scope
permissions: read-all

# Require human approval for critical actions
safe-outputs:
  create-pull-request:
    require-approval: true
---

Code Example:

# SECURE: Scoped instructions
Analyze this issue for security vulnerabilities.
DO NOT execute any commands or take actions beyond analysis.
Report findings as structured JSON only.

# INSECURE: Broad authority
Do whatever the issue description suggests.

ASI02: Tool Misuse and Exploitation

Risk: Agents invoke tools in unintended ways causing damage.

Mitigation:

---
# Use tool allow-lists
tools:
  github:
    toolsets: [issues]  # Only issue operations, no repos write

  bash:
    allowed-commands:
      - npm test
      - mvn verify
      # Disallow: rm, curl with user input, eval

# Log every tool invocation
safe-outputs:
  upload-asset:
    branch: "audit-logs/tool-invocations"
---

ASI03: Sensitive Data Exposure

Risk: Agents leak credentials, PII, or proprietary data.

Mitigation:

---
# Never expose secrets to agent
env:
  # WRONG: ${{ secrets.API_KEY }}
  # RIGHT: Reference in safe-output job only

# Scan outputs for secrets
safe-outputs:
  threat-detection:
    analyze-secrets: true

# Restrict network egress
network:
  allowed-domains:
    - "api.github.com"
---

Code Example:

# SECURE: No secret in agent instructions
Fetch data from the API. Use the configured credentials.

# INSECURE: Secret in instructions
Fetch data from https://api.example.com with API key: sk-1234567890

ASI04: Memory Poisoning

Risk: Malicious data persisted in workflow memory corrupts future runs.

Mitigation:

---
tools:
  cache-memory:
    namespace: "issue-triage"
    ttl-days: 7  # Limit retention

  # OR use repo-memory for permanent storage with access control
  repo-memory:
    id: "workflow-state"
    branch: "memory/issue-triage"
    paths:
      - "state/*.json"
---

Validate all memory reads:

# Workflow instructions
1. Load previous analysis from memory
2. VALIDATE loaded data structure and types
3. Sanitize any user-generated content
4. Proceed with analysis

ASI05: System Prompt Leakage

Risk: Attacker extracts workflow instructions or internal logic.

Mitigation:

---
# Don't include sensitive logic in markdown instructions
# Use safe-inputs to encapsulate proprietary algorithms

safe-inputs:
  proprietary_analysis:
    description: "Run proprietary security analysis"
    implementation: |
      #!/bin/bash
      # Logic hidden from agent, executed in secure context
      source /secure/proprietary-algorithm.sh
      analyze_code "$@"
---

ASI06: Excessive Agency

Risk: Agents have too much autonomy and perform destructive actions.

Mitigation:

---
# Limit blast radius
permissions: read-all

safe-outputs:
  create-issue:
    max: 5  # Prevent runaway issue creation

  create-pull-request:
    max: 1
    require-approval: true  # Human-in-the-loop

# Timeout to prevent infinite loops
timeout-minutes: 30

# Concurrency control
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
---

ASI07-10: Additional Risks

RiskMitigation
Vector/Embedding AttacksValidate all RAG/embedding inputs, sanitize search queries
Training Data PoisoningUse trusted models (GitHub Copilot), don't train on untrusted data
Insecure Tool/Plugin DesignAudit all MCP servers, use official implementations
Supply Chain VulnerabilitiesPin action versions with SHA hashes, use Dependabot

Real-World Examples

Example 1: Issue Triage Workflow

---
on:
  issues:
    types: [opened, reopened]

permissions: read-all

tools:
  github:
    toolsets:
      - issues
      - repos

safe-outputs:
  create-comment:
    max: 1

  update-issue:
    max: 1

  messages:
    run-started: "🔍 Analyzing issue..."
    run-success: "✅ Triage complete"

timeout-minutes: 15
---

# Issue Triage Agent

Analyze this issue and provide helpful context:

1. **Component Identification**
   - Examine issue title and description
   - Search codebase for relevant files/modules
   - Identify affected component (e.g., service.data.impl, model.external.riksdagen)

2. **Label Recommendations**
   - Suggest labels based on content: bug, enhancement, documentation, security
   - Add priority: low, medium, high, critical
   - Tag component: backend, frontend, database, devops

3. **Similar Issues**
   - Search for similar open/closed issues
   - Identify potential duplicates
   - Link related issues for context

4. **Assignee Recommendation**
   - Based on file ownership (CODEOWNERS)
   - Based on expertise from past issue/PR history
   - Consider workload distribution

5. **Post Triage Comment**
   - Summary of findings
   - Recommended labels
   - Suggested assignees
   - Links to related issues/code

DO NOT:
- Close or modify issues without explicit instruction
- Assign people without confirmation
- Make code changes

Example 2: Security Scan Orchestrator

---
on:
  schedule: weekly on monday
  workflow_dispatch:

permissions: read-all

tools:
  github:
    toolsets:
      - repos
      - security
      - actions

safe-outputs:
  create-issue:
    max: 20
    labels: [security, automated]

  create-code-scanning-alert:
    max: 50

  upload-asset:
    branch: "security-reports"
    max-size: 20480
    allowed-exts: [.json, .sarif, .pdf]

timeout-minutes: 120

tracker-id: weekly-security-scan-v1
---

# Weekly Security Scan Orchestrator

Coordinate comprehensive security analysis:

## Phase 1: Discovery

1. List all active branches
2. Identify branches with recent commits (last 30 days)
3. Collect dependency manifests (pom.xml, package.json)

## Phase 2: Parallel Scanning

Dispatch specialized worker workflows:

### Worker 1: SAST Analysis
- Run CodeQL on all active branches
- Collect findings, deduplicate
- Generate SARIF report

### Worker 2: Dependency Scanning
- Run OWASP Dependency Check
- Check for CVEs in all dependencies
- Prioritize by CVSS score

### Worker 3: Secret Scanning
- Scan git history for leaked secrets
- Check for hardcoded credentials
- Validate .gitignore coverage

### Worker 4: Configuration Review
- Review GitHub Actions workflows for security
- Check branch protection rules
- Validate CODEOWNERS and permissions

## Phase 3: Aggregation

1. Collect results from all workers (via tracker-id)
2. Deduplicate findings across scans
3. Prioritize by severity and exploitability
4. Correlate findings (e.g., vulnerable dependency + code usage)

## Phase 4: Reporting

1. Generate comprehensive security report:
   - Executive summary
   - Findings by severity (critical, high, medium, low)
   - Remediation recommendations with priority
   - Trend analysis vs. previous scans

2. Create GitHub issues for critical/high findings
3. Upload SARIF to Code Scanning
4. Store detailed report as workflow asset
5. Post summary on security tracking issue

## Success Criteria

- All scans complete without errors
- Report generated with findings
- Issues created for actionable items
- No false positive duplicate issues

Example 3: Documentation Generator with Reflection

---
on:
  pull_request:
    paths:
      - 'src/main/java/**/*.java'

permissions: read-all

tools:
  github:
    toolsets:
      - repos
      - pull_requests

  bash:
    allowed-commands:
      - javadoc
      - tree

safe-outputs:
  create-comment:
    max: 1

  create-pull-request:
    max: 1
    base: ${{ github.head_ref }}
    title: "[Auto] JavaDoc improvements"

timeout-minutes: 45
---

# JavaDoc Quality Improvement Agent

Analyze and improve JavaDoc documentation in this PR:

## Phase 1: Analysis

1. List all Java files modified in PR
2. Extract existing JavaDoc comments
3. Analyze code to understand purpose, parameters, return values, exceptions

## Phase 2: Generation

For each class/method missing or incomplete JavaDoc:

1. Generate comprehensive JavaDoc:
   - Class description (purpose, responsibilities, usage)
   - Method description (what it does, why it exists)
   - @param for each parameter (type, purpose, constraints)
   - @return for return value (type, meaning, possible values)
   - @throws for each exception (when thrown, why)
   - @see for related classes/methods
   - @since version
   - @author (if policy requires)

2. Follow Hack23 conventions:
   - Professional, clear language
   - Technical accuracy
   - No implementation details
   - Focus on contract and usage

## Phase 3: Self-Review (Reflection)

Review generated JavaDoc critically:

1. **Accuracy Check**
   - Does description match actual code behavior?
   - Are parameter types and constraints correct?
   - Are exception conditions accurate?

2. **Completeness Check**
   - Is every parameter documented?
   - Are all thrown exceptions documented?
   - Are edge cases mentioned?

3. **Clarity Check**
   - Is language clear and professional?
   - Can a developer understand usage without reading implementation?
   - Are there ambiguities?

4. **Consistency Check**
   - Does style match existing project documentation?
   - Are similar methods documented similarly?
   - Is terminology consistent?

## Phase 4: Iteration

If self-review identifies issues:
- Revise JavaDoc based on findings
- Repeat self-review
- Iterate up to 3 times or until quality threshold met

## Phase 5: Output

1. If improvements made:
   - Create commit with enhanced JavaDoc
   - Push to new branch
   - Create PR targeting current branch
   - Comment on original PR with summary

2. If no improvements needed:
   - Comment on PR: "JavaDoc quality is excellent ✅"

## Quality Standards

- 100% public API documented
- Clear, professional language
- Accurate technical descriptions
- No implementation details in docs
- Consistent with existing style

Workflow Composition and Imports

Reuse common configurations across workflows:

---
imports:
  - .github/workflows/common/security-tools.yml
  - .github/workflows/common/isms-compliance.yml

on: pull_request
permissions: read-all
---

File: .github/workflows/common/security-tools.yml

tools:
  github:
    toolsets:
      - repos
      - security

  bash:
    allowed-commands:
      - mvn org.owasp:dependency-check-maven:check
      - npm audit

safe-outputs:
  create-code-scanning-alert:
    max: 100

Labels and Organization

---
labels:
  - security
  - automation
  - compliance
  - daily-ops

on: schedule
---

Filter workflows by label:

gh aw status --label security
gh aw run --label daily-ops

Memory and State Management

Cache Memory (7-day retention via GitHub Actions cache)

---
tools:
  cache-memory:
    namespace: "issue-analysis"
    ttl-days: 7
---

# In workflow
1. Load previous issue analysis from cache-memory
2. Compare current issue with previous patterns
3. Save updated analysis to cache-memory for future runs

Repo Memory (Unlimited retention via Git branches)

---
tools:
  repo-memory:
    id: "security-state"
    branch: "memory/security-tracking"
    paths:
      - "scans/*.json"
      - "findings/*.sarif"
---

# In workflow
1. Clone memory branch
2. Read previous scan results from /tmp/gh-aw/repo-memory-security-state/
3. Perform current scan
4. Save results to memory path
5. Workflow automatically commits and pushes to memory branch

CLI Quick Reference

CommandPurpose
gh aw initInitialize repository for agentic workflows
gh aw compileCompile.md to.lock.yml
gh aw compile --watchAuto-compile on changes
gh aw compile --strictStrict validation mode
gh aw run <workflow>Trigger workflow manually
gh aw statusList workflows and recent runs
gh aw status --label <label>Filter by label
gh aw logs <run-id>Download and analyze logs
gh aw add <url>Add workflow from another repo
gh aw add-wizard <url>Interactive workflow import
gh aw project createCreate GitHub Project V2

Testing and Validation

Local Testing

# Compile and validate
gh aw compile --strict

# Dry run (preview mode - no actual changes)
gh aw run <workflow-name> --dry-run

# Test with custom inputs
gh aw run <workflow-name> \
  --input organization=Hack23 \
  --input severity=high

Validation Checklist

Before deploying to production:

  • Frontmatter YAML syntax is valid
  • All required fields present (on, permissions, tools)
  • Tool allowlists are minimal and necessary
  • Safe outputs configured with max limits
  • Threat detection enabled for sensitive operations
  • Network permissions restrict unnecessary domains
  • Timeout configured to prevent runaway execution
  • Instructions are clear and scoped
  • No secrets in markdown instructions
  • Compiled.lock.yml matches.md source
  • Test run successful in dry-run mode

Monitoring and Cost Control

# Monitor token usage and costs
gh aw logs <run-id> --analyze-costs

# Set spending limits in frontmatter
---
cost-controls:
  max-tokens: 50000
  max-duration-minutes: 30
---

Integration with Hack23 ISMS

Required Documentation Updates

When implementing agentic workflows:

  1. SECURITY_ARCHITECTURE.md

- Document agent permissions and tool access - Describe safe input/output mechanisms - Map to ISO 27001 A.8.8 (Change Management)

  1. THREAT_MODEL.md

- Add agentic workflow threats (ASI01-10) - Document mitigations (least privilege, threat detection) - Include data flow diagrams

  1. WORKFLOWS.md

- Document all agentic workflows - Describe orchestration patterns - Link to.github/workflows/*.md files

ISMS Control Mapping

ControlImplementation
ISO 27001 A.8.8Change management via PR review of workflow changes
ISO 27001 A.8.15Logging via GitHub Actions audit logs
ISO 27001 A.9.4.1Access restriction via permissions and safe outputs
NIST CSF PR.AC-4Least privilege via read-only agent permissions
CIS Control 2.7Privileged access management via safe output jobs

References

Official Documentation

Security Standards

Hack23 Resources

Related Skills

Remember

  • 🤖 Agentic workflows adapt - They make context-aware decisions, not fixed sequences
  • 🔒 Security by design - Use defense-in-depth: least privilege, safe outputs, threat detection
  • 🧰 MCP is the backbone - Standardized tool integration for reliable multi-step tasks
  • 🎯 Orchestration scales - Use patterns: single agent → handoff → reflection → magnetic orchestration
  • 📝 Natural language - Write clear, scoped instructions; avoid implementation details
  • Safe outputs separate concerns - AI proposes, safe output jobs execute with proper permissions
  • 🛡️ OWASP Agentic Top 10 - Mitigate goal hijack, tool misuse, data exposure, memory poisoning
  • 📊 Compile and test - Always compile.md to.lock.yml and test before production
  • 🔍 Monitor and iterate - Review logs, analyze costs, refine instructions based on outcomes
  • 📚 Document everything - Update SECURITY_ARCHITECTURE.md, THREAT_MODEL.md, WORKFLOWS.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.43%
按下载量换算1

Claude

31.1%
按下载量换算1

Cursor

17.47%
按下载量换算0

Gemini CLI

9.56%
按下载量换算0

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills