Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[workflow-editor] Trim duplicated rule restatement in guidelines-enforcer

Đang mở Phù hợp với người mới
#3,927 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Bắt đầu với .github/workflows/guidelines-enforcer.md và so sánh bước review ở schedule-mode của tệp này với các phần có thẩm quyền trong .github/workflows/guidelines.md. Hãy để hướng dẫn review trỏ đến các phần đó mà không lặp lại các quy tắc của chúng, sau đó chạy gh aw compile --validate để tạo lại và xác minh .github/workflows/guidelines-enforcer.lock.yml.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

agentic-workflows documentation workflow-editor

[!CAUTION]
Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.

Protected files: .github/workflows/guidelines-enforcer.lock.yml, .github/workflows/guidelines-enforcer.md

What changed

guidelines-enforcer.md's schedule-mode review step re-explained ten
guideline rules with a full sentence of restated logic for each one —
numbered headers, alert callouts, tooling progression, step ordering,
schedule syntax, Codespaces-first design, prerequisite discipline,
checkpoint presence, voice/tone, and environment alternatives. All of
that detail already lives in .github/workflows/guidelines.md, which
this same step already instructs the agent to "read in full" before
reviewing any files.

Why

Restating the rule set inside the prompt is duplicated guidance the
agent doesn't need — it already has the authoritative source loaded.
The bullet list also drifts out of sync with guidelines.md over time
since edits to one don't automatically update the other.

Fix

Replaced the ten-bullet restatement with one short sentence that
points to the specific guidelines.md sections relevant to review
(Header style, Alert callouts, Codespaces-first tooling progression,
Step ordering, Schedule triggers, Core route and environment side
quests, Prerequisite discipline, Checkpoint checklist size limit /
Dispatcher pages, and Learner empathy). This keeps the instruction
Skills-like: short, direct, and pointing learners (and the agent) to
one source of truth instead of repeating it.

Files changed

  • .github/workflows/guidelines-enforcer.md — trimmed the duplicated
    rule list in the "Review each file" step
  • .github/workflows/guidelines-enforcer.lock.yml — regenerated with
    gh aw compile --validate

[!WARNING]

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • api.github.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"

See Network Configuration for more information.

Generated by ✂️ Workflow Skills Editor · copilot · auto · 53.4 AIC · ⌖ 9.2 AIC · ⊞ 7.5K · ◷

  • expires on Sep 29, 2026, 7:53 AM UTC

[!NOTE]
This was originally intended as a pull request, but the git push operation failed.

Original error: The process '/usr/bin/git' failed with exit code 1

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

Create the pull request manually
# Download the artifact from the workflow run
gh run download '36393520338' -n agent -D '/tmp/agent-36393520338'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-36393520338/aw-workflow-skills-editor-guidelines-enforcer-trim.bundle'
temp_ref='refs/bundles/create-pr-workflow-skills-editor-guidelines-enforcer-trim-822b32b0a3806277-dc6b7c89'
target_ref='refs/heads/workflow-skills-editor/guidelines-enforcer-trim-822b32b0a3806277'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
  bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
  echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
  exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'workflow-skills-editor/guidelines-enforcer-trim-822b32b0a3806277'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch to the target remote
git push 'origin' 'workflow-skills-editor/guidelines-enforcer-trim-822b32b0a3806277'

# Create the pull request
gh pr create --title '[workflow-editor] Trim duplicated rule restatement in guidelines-enforcer' --base 'main' --head 'workflow-skills-editor/guidelines-enforcer-trim-822b32b0a3806277' --repo 'githubnext/gh-aw-workshop'
Ngôn ngữ chính
JavaScript
Star
49
Fork
20
Merge trung bình
7 giờ 12 phút
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của githubnext/gh-aw-workshop

Tất cả issue của githubnext/gh-aw-workshop

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.