Skip to content

Consolidate software-workflow and align it with AGENTS.md - #9

Merged
jiahuei merged 4 commits into
mainfrom
software-workflow-precedence
Nov 23, 2026
Merged

jiahuei merged 4 commits into
mainfrom
software-workflow-precedence

Conversation

@jiahuei

@jiahuei jiahuei commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The first instruction in SKILL.md now states that project instruction files, such as AGENTS.md and CLAUDE.md, always override the skill. Before this change, that rule appeared only in SOURCES.md, which agents do not read.
  • SKILL.md now opens with the core principles from this repository's AGENTS.md: root causes, simplicity first, approach validation, owner-first fixes, buy-in for speculative robustness, simplification after implementation, honest reporting, and protection of secrets and user work. A six-step workflow (understand, plan, implement, verify, simplify and review, hand off) and a worked example follow.
  • Added an "Apply rules in proportion" section with a conflict order: project instructions and the user's request, then demonstrated defects and preserved behavior, then the smallest change, then the rest of the skill. The compressed references previously had no priority order, so an agent could apply a narrow rule too broadly.
  • Consolidated seven Markdown task guides into four: plan-and-design.md, build-and-verify.md, debug-and-measure.md, and change-and-handoff.md. Web- and backend-specific examples now cover applications, services, libraries, command-line tools, data pipelines, games, and embedded code. Translation-workflow guidance was removed.
  • The trigger description now depends on task complexity. The skill covers changes that need a plan, a root cause, a contract decision, a measurement, a migration, or a release, and also code or architecture review. It excludes routine mechanical edits and simple factual questions.
  • Failure handling now applies only to failures that a supported path can reach. The previous failure-message rule conflicted with the rule against speculative defenses. In a comparison run, an agent using the skill added an error path and a "Refresh to try again" message for a condition that an earlier layer had already filtered out.
  • State guidance requires one owner for each piece of state and side-effect-free render and status functions. Results are discarded only when a newer request supersedes the older one. Independent operations, such as two separate saves, still report their own success or failure.
  • Implementation guidance now preserves supported behavior outside the requested change. The defect being fixed is not a preservation requirement.
  • Retry guidance first asks which duplicate effect must be prevented and reuses existing guarantees, such as transactions, uniqueness constraints, or provider keys. Stored deduplication is added only for the remaining gap. In that case, the key is claimed atomically before the effect starts, and a repeated key with a different payload is rejected.
  • Optimization requires evidence from source, operation counts, measurements, or profiling. Profiling is reserved for an uncertain cause or cost, and a claimed improvement requires comparable measurements.
  • Configuration changes now verify defaults, preset inheritance, validation, explicit overrides, and serialization across consumers. Checks now run in the working directory and package environment that their manifest or CI job selects.
  • Dependency guidance follows the project's version-pinning and lockfile policy. Committing the updated lockfile remains subject to the commit-authorization rule.
  • The handoff reference uses the ## Summary and ## Verification pull request structure, the documentation-update check, and the writing rules from AGENTS.md.
  • Recorded the local revisions in SOURCES.md and updated the catalog entry in skills/README.md.

Verification

  • npx --yes prettier@3.8.3 --check '**/*.{md,yml,yaml,json}' .prettierrc (Node 24 container): passed.
  • git diff --check: passed.
  • python skills/skill-creator/scripts/quick_validate.py skills/software-workflow: "Skill is valid!". The description has 477 characters.
  • python -m unittest test_material_catalogues test_skill_provenance test_source_adaptations test_utility_skill_scripts (from tests/, Python 3.12 with tests/requirements.txt): 35 tests passed, 5 skipped for optional tools.
  • python tools/build_site.py and python -m unittest discover -s tests -p 'test_*site*.py': 14 tests passed.
  • Behavioral verification in an agent was not run for the revised skill. The motivating comparisons used the previous revision. A matched comparison should run the same tasks in separate worktrees at one commit, with identical dependencies, instructions, and model settings.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request closed.

@jiahuei jiahuei changed the title Make project instructions override software-workflow and scope its rules Consolidate software-workflow and align it with AGENTS.md Nov 23, 2026
@jiahuei
jiahuei merged commit 5f848df into main Nov 23, 2026
6 checks passed
@jiahuei
jiahuei deleted the software-workflow-precedence branch November 23, 2026 05:02

This branch was successfully deployed

1 active deployment
github-pages — 2b87952c Deployed Nov 23, 2026 by jiahuei via Deploy homepage and PR previews #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant