Repository navigation
docs: add code-simplification to README - #4
Merged
Merged
Conversation
Co-authored-by: addyosmani <110953+addyosmani@users.noreply.github.com>
addyosmani
approved these changes
Mar 15, 2026
Copilot
AI
changed the title
[WIP] [#2] Fix code simplifier v0.1
docs: add code-simplification to README
Mar 15, 2026
addyosmani
marked this pull request as ready for review
March 15, 2026 07:02
This was referenced Apr 24, 2026
jota-batuta
referenced
this pull request
in jota-batuta/batuta-agent-skills
Apr 24, 2026
* feat(hygiene): support layered projects via docs/features/ target Add Step 0 to project-init that classifies a project as feature-oriented (vertical slices) or layer-oriented (horizontal layers like Django, Rails, FastAPI, Temporal workers). Layered projects route feature docs to docs/features/<name>/ instead of forcing a src/<feature>/ refactor, so existing code stays in its technical layer. - SKILL.md: add alternate layered layout, Step 0 classifier, style-aware feature-init branch, layered CLAUDE.md template with Code map, layered verification block, three new red flags. - SKILL.eval.yaml: add trigger-03 case covering a Django/FastAPI/ Temporal-style project with models/, services/, activities/. - plugin.json: bump 1.1.0 -> 1.2.0 (MINOR, additive, non-breaking). Rationale: forcing a vertical-slice refactor in a monolith-by-layer breaks imports, tests and worker/router registrations with risk disproportionate to the doc-scoping benefit. Layered projects keep code where it is; docs/features/<feature>/CLAUDE.md maps which layer files implement each feature. * docs(user-settings): add feature-vs-layer pre-decision step Update the user-level CLAUDE.md backup to match the new batuta-project-hygiene behavior: - Insert a "Decisión previa" section before the hard rules block, explaining when to use vertical-slice folders vs docs/features/ for layered projects. - Rewrite hard rule #1 to cover both feature-oriented and layered project layouts (previously only covered feature-oriented). - Extend hard rule #4 auto-detection tree with a layered-project branch as the first check, and require explicit style: and features-root: fields in the persisted CLAUDE.md convention.
rafiquecudjoe
pushed a commit
to rafiquecudjoe/agent-skills
that referenced
this pull request
Jun 1, 2026
docs: add code-simplification to README
aleksaToljic
referenced
this pull request
in Project-Highway/agent-skills
Jul 21, 2026
…eval CI The upstream sync ratcheted the eval gate: execution evals that are provisional or carry an empty files[] now hard-fail instead of emitting a soft note. This broke the fork's two custom eval cases and, together with a pre-existing routing regression, left `run-evals.js --min-rank1 80` (the CI gate) red. - qa-handoff: add a real git-diff fixture (baseline transfers module + tests, plus .eval/working-tree.patch producing a two-file uncommitted diff), wire the eval case to it via files[], drop the provisional trust level, and reword the prompt to "the pending changes on this branch" so it matches the working-tree diff the fixture creates. - highway-client-facing-styleguide: add a UI fixture (bridge layout with footer + reserved chatbot corner, plus a conventions note), wire files[], drop provisional. - Root-cause and fix the incremental-implementation "#4" routing regression: our qa-handoff description leaned on the generic word "change", lowering that term's IDF — the exact term incremental-implementation routes on. Swap "a change is ready" -> "a diff is ready" (a term qa-handoff already uses), restoring it to top-3 without perturbing any other skill. - Update SPEC.md to reflect the shipped work. Verification: validate-skills (26/26), run-evals-test (12/12), validate-commands (9/9), and `run-evals.js --min-rank1 80` all pass — 0 errors, rank-1 rate 87%. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6C4riQe1GjzuoW7RC8KM8
tisan-das
referenced
this pull request
in tisan-das/agent-skills
Aug 10, 2026
A source pass against the service repos established who actually calls
POST /oms/ce-admin/v1/compute-engines. The corpus already held both halves of
the answer but never reconciled them, and asserted a third owner that is dead
code. This lands the reconciliation.
Established behaviour:
dedicated -> GCS -> SCOrch -> avcd-vce-engine-provision -> OMS
(container phase 7, gated on ENABLE_OMS && !SKIP_PRIVATELINK && !PUBLIC)
pooled -> GCS -> cog-compute-engine-pooling-service -> svc-vce-lmo -> OMS
(flow oms-ce-registration; Pooling reports oms_status back to GCS)
GCS registers on neither path: the status-monitor call site is commented out at
cmd/status-monitor/main.go:1404-1406, while omsService.go and
orchestrationService.go remain in the tree as dead code.
Corrected
- H23 cited services/oms_ce_admin/client.go for svc-vce-lmo, which is Python
(Litestar + Celery, per KB service table). The only .go path attributed to a
Python service anywhere in the corpus, and a grep anchor that could never
resolve. Now client.py:69-118.
- H12 claimed GCS did dedicated "register/poll/deregister". Split: deregister
stays attributed to GCS, register/poll marked [as-deployed] with a pointer to
H26 as the live registrar. Deliberately not blanket-retired -- the source pass
addressed registration only, and GCS deregistration appears independently in
KB 7.x, the status-monitor teardown path and the auto-deprovision flow.
- Provisioning 5.1 carried the same stale claim in the "APIs that GCS consumes"
table (POST compute-engines, GET compute-engine-jobs) and in the architecture
diagram arrow. Rows marked [as-deployed]; arrow narrowed to "OMS deregister".
- KB "Dedicated has no OMS step at all" overreached. Dedicated has no oms_status
axis and no OMS gate on console status, but it does register inside the
provision container -- so a dedicated CE can fail phase-7 registration and
still display Running. Rewritten to say gate, not step.
Added
- KB: an ownership table at the point where pooled OMS registration is explained,
naming the registrar per CE type with evidence anchors, plus the reminder that
a public or PrivateLink-skipped dedicated CE is *supposed* to have no OMS
registration -- absence there is correct behaviour, not a fault. Also notes
this is distinct from site-level OMS component provisioning via oms-create.
- KB 5.6 #4 recording the change, marked [current], with the SHA left to be
stamped in section 0.
Consequences recorded
- Lifecycle defect 18 ("three collection_id conventions") is now two live paths;
the GCS convention only explains CEs registered before the change.
- Part 7 recommendation 16 ("unify the OMS registration contract") is now a
two-way reconciliation plus deletion of the dead GCS contract.
Flagged, not changed
- Lifecycle 3.2 states the status-monitor gates RUNNING on oms_status at
clusterService.go:2375-2410, which sits awkwardly beside KB 5.6 #2 (GPSC-3735,
"OMS registration is handled downstream and must not gate this path"). Whether
that is a second live gate or stale text was not re-checked; marked [inferred]
with an instruction to confirm before routing on it.
Only the H23 extension fix is verifiable from inside the corpus. The ownership
claims rest on the source pass and are marked [current] accordingly; they stay
provisional until section 0 carries the commit SHA.
tisan-das
referenced
this pull request
in tisan-das/agent-skills
Aug 10, 2026
Self-review of the previous commit found one contradiction I introduced and three stale claims I failed to flag. Contradiction (introduced by 391db96) - KB 5.6 #4 called omsService.go / orchestrationService.go "dead code" while H12, edited in the same commit, keeps DELETE .../compute-engines/{id} live and cites omsService.go:17-230. Both cannot hold. The source pass addressed registration only and said nothing about deregistration, so "dead code" overreached exactly the way the H12 split was meant to avoid. Reworded: the files remain, their registration paths are no longer reached, deregistration is unaffected, and the row explicitly must not be read as retiring the file. Stale claims missed by 391db96 - Provisioning 7 (dedicated), 8 (pooled) and 11 all state that RUNNING is gated on OMS. Six places in the KB say the opposite, and KB 735 says "no OMS gate any more" -- the corpus recorded GPSC-3735 in the KB and never propagated it to the provisioning doc. Each site now carries an [as-deployed] caveat pointing at KB 5.6 #1-#2. The dedicated one is called out separately because KB says that path never had a gate, so a dedicated CE stuck at Starting is not explained by one. Diagrams left intact as history rather than rewritten, since the dedicated case cannot be resolved without the tree. - KB 830 cited Provisioning 7 for phase-7 registration; the authoritative line with the ENABLE_OMS / SKIP_PRIVATELINK / PUBLIC conditions is in 9. Now cites both. Checked and found correct, no change - run_oms_registration and runner.sh:27-51 were already in Lifecycle 3.1, matching the source pass's runner.sh:27-50 -- independent corroboration of the dedicated container chain (create_targets -> wait_for_db -> run_oms_registration). - clusterService.go:834-875 vs the pass's 896-931: adjacent ranges for SCOrch component creation, ordinary line drift, left alone. - H26's src/oms/config.sh:38-130 vs the pass's 38-77: same start, range drift only.
zeekay
pushed a commit
to Dream-AI-4444/addys-agent-skills
that referenced
this pull request
Sep 9, 2026
docs: add code-simplification to README
Yi-111-a
pushed a commit
to Yi-111-a/agent-skills
that referenced
this pull request
Oct 14, 2026
…tually guard Two blocking items from review on addyosmani#668. Adding 'ation' without 'ations' left the plural longer than its singular: migration -> migr but migrations -> migration. That halves the score for 'Plan the database migrations' (0.354 -> 0.093) where the two forms used to match. Both are now listed, with a regression test that fails on the one-form list. The -ifications rule above already handled both forms. The pinned auth case was not a guard: 'Add auth to the login flow' ranks addyosmani#1 on main because 'login' and 'flow' are in the description, so it passes without the alias map. Swapped for 'Add auth and rotate the session cookie' (addyosmani#4 on main, addyosmani#1 with the alias), and the sandbox test for the alias map still fails on its own if the map is dropped. Corpus: 91/91 rank-1, 143 checks, 40/40 unit tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
code-simplificationskill was added without corresponding README updates, leaving it undocumented in the public-facing reference.Changes
code-simplificationadded to the Review row/agent-skills:code-simplify → Simplify code for clarityadded to the Claude Code quick-start block#### code-simplificationentry under Review Phase with description and "Use when" triggercode-simplification/directory added to the tree💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.