Skip to content

About

Evidence-led, open-source-first engineering Skill for project audits, OSS transformation, root-cause diagnosis, UI/UX quality gates, project rescue, and release readiness for AI coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

OpenFirst Engineering

Audit projects. Reuse mature open source. Diagnose root causes. Rescue delivery. Ship with evidence.

Tests License Python Skill

English | 简体中文

OpenFirst Engineering (OFE) is a reusable Codex Skill and AI coding-agent engineering system for project audits, open-source transformation, build vs. reuse decisions, root-cause diagnosis, engineering planning, controlled implementation, UI/UX quality gates, project rescue, and release readiness.

It helps an agent decide what to build, keep, reuse, integrate, repair, stop, or release. Broad software requests become bounded decisions backed by current project evidence, mature open-source research, explicit permissions, objective quality gates, rollback, and verifiable completion conditions.

OFE optimizes for delivery with controlled risk, not activity, document volume, or code generation volume.

Use OFE when

  • an existing project has been modified repeatedly but still cannot ship;
  • you need an independent project audit that separates current facts from stale reports, mocks, demos, and claims;
  • a persistent bug or production failure needs reproducible root-cause diagnosis rather than another rewrite;
  • you must decide between keeping, configuring, integrating, forking, replacing, or minimally building a capability;
  • an open-source Web or AI Agent project must be transformed into a Windows, desktop, mobile, or product-specific application;
  • a UI looks cheap, inconsistent, inaccessible, or difficult to use and needs evidence-led quality convergence without uncontrolled redesign;
  • AI, Agent, RAG, automation, data, security, licensing, deployment, or commercial promises need bounded engineering decisions;
  • a release candidate needs identity, quality, rollback, license, support, and customer-delivery gates;
  • a long-running project needs scope freeze, blocker deduplication, a stop-work list, and the shortest honest path to delivery.

OFE is designed for requests such as project audit, open-source selection, open-source transformation, software architecture decision, root-cause analysis, UI/UX audit, project rescue, release readiness, Windows desktop wrapper, and AI Agent engineering.

Why OFE exists

AI coding agents can move quickly, but speed alone does not answer the hardest engineering questions:

  • Does the requested capability already exist but remain hidden or disconnected?
  • Is a maintained open-source solution safer than another custom subsystem?
  • Is the current defect proven, or inferred from stale reports and mocks?
  • Is a rewrite justified by benefit, license, migration cost, and rollback?
  • What evidence is strong enough to call a task complete or a release ready?
  • When should the agent stop instead of expanding the scope?

OFE makes those questions part of the workflow before large changes are made.

Core capabilities

Capability What OFE adds
Project-state inspection Separates current code and runtime evidence from demos, fixtures, mocks, and historical claims
Open-source-first selection Checks native capability, dependencies, hidden paths, mature external solutions, adaptation, and only then minimal custom development
Mode routing Selects one primary workflow based on the actual decision, not keyword matching
Permission control Keeps planning and audits read-only unless implementation is explicitly authorized
Evidence discipline Distinguishes facts, supported inferences, unknowns, recommendations, and disputed conclusions
Quality gates Defines observable correctness, security, reliability, delivery, license, and commercial conditions
UI/UX quality gate Requires rendered journeys, state and viewport coverage, accessibility, recovery, and separate functional, visual, interaction, and accessibility results
Minimal-change planning Prefers the smallest justified change that preserves stable behavior and upstream compatibility
Release and rescue closure Defines rollback, retest, ownership, stop conditions, and unresolved risk without manufacturing success
Professional review views Provides 81 compact responsibility contracts without pretending they are separate people or agents
Structured validation Includes local scripts for inventory, finding validation, and decision-report validation

Eight operating modes

Mode Use it to decide Typical result
MODE-01 PROJECT_INCEPTION Whether a product or capability should exist Build, integrate, defer, or reject decision
MODE-02 OPEN_SOURCE_TRANSFORMATION How to adapt an existing open-source system Upstream-preserving transformation route
MODE-03 ENGINEERING_PLANNING How an approved outcome becomes executable work Architecture, boundaries, tasks, gates, rollback
MODE-04 CONTROLLED_IMPLEMENTATION How to implement an explicitly approved scope Bounded change with current-baseline verification
MODE-05 PROJECT_AUDIT What condition a project is actually in Evidence-backed findings and limitations
MODE-06 ROOT_CAUSE_DIAGNOSIS Why a concrete failure persists Reproduction, causal chain, smallest control, retest
MODE-07 PROJECT_RESCUE_AND_CLOSURE How to stop churn and converge delivery Frozen exit conditions and closure plan
MODE-08 RELEASE_READINESS Whether a candidate can ship Go, conditional go, no-go, or defer evidence

The router selects a mode from the requested decision, project state, and authorization. Missing source reduces confidence; it does not silently change the task into implementation.

UI/UX quality gate

UI/UX is a cross-cutting companion gate rather than a ninth lifecycle mode. A user-facing audit remains MODE-05, a persistent interface failure remains MODE-06, an approved frontend change remains MODE-04, and a release decision remains MODE-08.

When applicable, the gate freezes the interface build, users, core journeys, states, viewports, devices or DPI, input methods, locales, existing design system, and protected business behavior. It then requires actual rendered evidence and records functional, visual, interaction, and accessibility results separately.

The gate prevents common failure patterns: approving UI from source code or a single screenshot, replacing a framework before diagnosing the real defect, hiding functionality to make a page look clean, stacking global overrides, or propagating a redesign before a representative pilot passes.

Open-source-first gate

For new capabilities, dependencies, framework replacement, Agent expansion, core refactors, and open-source transformation, OFE requires this order:

visible native capability
        -> hidden or disconnected capability
        -> installed dependency or framework feature
        -> configuration or adapter
        -> mature external solution
        -> bounded local improvement
        -> minimal custom build

Serious candidates are compared on function fit, releases, maintenance, issues and pull requests, license obligations, advisories, provenance, platform fit, integration, migration, rollback, regional feasibility, and total cost of ownership. Stars and polished README files are never sufficient evidence.

The allowed decisions are:

KEEP, REUSE_NATIVE, INTEGRATE, IMPROVE, REPLACE, MINIMAL_BUILD, DEFER, and REJECT.

Evidence model

Level Meaning
E0 Unsupported statement
E1 Claim, README, screenshot, filename, or weak indirect signal
E2 Traceable current static code, configuration, or schema evidence
E3 Repeatable local test, build, or analysis with a recorded result
E4 Isolated end-to-end, migration, recovery, performance, or security validation
E5 Authorized production, customer, or business outcome with lineage

Required status vocabulary keeps unknowns honest:

CONFIRMED, RISK, UNVERIFIED, PASSED, NOT_IMPLEMENTED, OUT_OF_SCOPE, RESOLVED, and DISPUTED.

UNVERIFIED is neither a pass nor a defect. PASSED requires an applicable assertion, a current baseline, actual execution or equivalent direct proof, and a recorded result.

Permission classes

Permission Boundary
READ_ONLY Inspect and report; do not mutate source, configuration, or data
PLAN_ONLY Create plans and templates outside business source; do not implement
IMPLEMENT_SCOPED Modify only the explicitly approved scope
TEST_IN_SANDBOX Run bounded tests without real customer or production mutation
RELEASE_PREPARATION Prepare candidate artifacts and gates; high-impact release actions still require separate authorization

Planning, auditing, diagnosis, and research never imply permission to edit or deploy. Production mutation, destructive migration, credential disclosure, license changes, real customer data, public communication, and material paid calls require explicit authorization.

Professional responsibility views

OFE includes 81 compact role contracts across four packs:

  • business, product, UX, finance, and governance;
  • architecture, engineering, desktop, build, migration, and open source;
  • AI, Agent, data, privacy, application security, and supply chain security;
  • QA, release, SRE, operations, support, delivery, and commercial readiness.

Roles are responsibility views, not fabricated reviewers. High-impact decisions require an independent counter-review when real delegation exists. Otherwise, OFE requires a separated adversarial pass and disclosure of that limitation.

Install

Codex on macOS or Linux

git clone https://github.com/vincentlovesnake-maker/openfirst-engineering.git \
  ~/.codex/skills/openfirst-engineering

Codex on Windows PowerShell

git clone https://github.com/vincentlovesnake-maker/openfirst-engineering.git "$HOME\.codex\skills\openfirst-engineering"

Restart or refresh the agent after installation. The final directory must contain SKILL.md at its root.

To update an existing installation:

git -C ~/.codex/skills/openfirst-engineering pull --ff-only

Automatic discovery is enabled in agents/openai.yaml. Explicit invocation is recommended when the mode, permissions, or evidence contract matters:

$openfirst-engineering

Quick-start prompts

Open-source selection

Use $openfirst-engineering. Inspect the current project before recommending
change, run the open-source-first gate, compare keep/reuse/integrate/build, and
separate confirmed facts from unverified assumptions.

Read-only audit

Use $openfirst-engineering in MODE-05 with READ_ONLY permission. Establish the
current baseline, identify evidence-backed findings, and do not treat historical
reports or mocks as current pass evidence.

Desktop transformation

Use $openfirst-engineering in MODE-02 to evaluate packaging this open-source Web
Agent as a Windows client. Preserve upstream behavior, compare mature wrappers,
and define install, update, rollback, uninstall, permissions, offline behavior,
and signing acceptance.

Root-cause diagnosis

Use $openfirst-engineering in MODE-06. Reproduce the failure at the narrowest
reliable layer, distinguish trigger from root cause, propose the smallest
control, and define an independent retest condition.

Release decision

Use $openfirst-engineering in MODE-08. Freeze the candidate identity and release
gates before scoring. Return GO, CONDITIONAL_GO, NO_GO, or DEFER with actual
verification evidence and rollback.

UI/UX quality audit

Use $openfirst-engineering in MODE-05 with READ_ONLY permission and activate
UI_UX_QUALITY_GATE. Freeze the interface baseline, inspect rendered core
journeys across relevant states and viewports, separate functional, visual,
interaction, and accessibility results, identify canonical root causes, and
recommend a bounded pilot before propagation.

Output contract

An OFE decision should include, in the shortest useful form:

  • selected mode and permission;
  • frozen baseline and scope;
  • facts, inferences, unknowns, and recommendations;
  • existing or native capability findings;
  • open-source gate result when triggered;
  • UI/UX gate evidence and separate functional, visual, interaction, and accessibility results when applicable;
  • options and an explicit decision;
  • tasks with owner role, boundary, dependencies, acceptance, rollback, and done condition;
  • independent review result or disclosed self-review limitation;
  • verification actually run and evidence not yet obtained;
  • completion state: COMPLETE, PARTIAL, BLOCKED, DEFERRED, or NO_CHANGE_NEEDED.

Included tools

The helper scripts use only the Python standard library and intentionally make no network requests.

# Read-only project inventory
python scripts/inventory.py /path/to/project

# Finding-record validation
python scripts/evidence_check.py findings.json --root /path/to/project

# Decision-output validation
python scripts/validate_outputs.py report.json

Inventory excludes known secret files, caches, build outputs, vendor trees, and browser profiles. Validators check structure and evidence rules without pretending to judge whether a conclusion is true.

Templates

Reusable assets are included for open-source comparisons, project plans, durable project state, implementation tasks, audits, UI/UX quality assessments, release checklists, and rescue plans. Templates are scaffolding, not evidence.

Repository layout

SKILL.md                         Main workflow and mode router
agents/openai.yaml               Agent-facing metadata and invocation policy
references/                      Mode, evidence, safety, quality, and role rules
references/roles/                81 professional responsibility contracts
assets/                          Reusable decision and delivery templates
scripts/                         Read-only inventory and validation helpers
tests/                           Unit, integrity, scenario, and behavioral tests
.github/workflows/tests.yml      Cross-platform CI

Development and validation

Python 3.10 or newer is recommended. The test suite has no third-party runtime dependencies.

python -m unittest discover -s tests -v
python -m compileall -q scripts

CI runs on Windows, Linux, and macOS using Python 3.10 and 3.13. Tests cover discovery metadata, evidence rules, mode and permission boundaries, open-source decisions, all 81 role contracts, the UI/UX companion gate, read-only inventory behavior, output validation, broken-project ground truth, and reference integrity.

What OFE does not claim

OFE is not legal advice, a security certification, or a release authority. It does not grant access to secrets, customer data, production systems, or paid APIs. It does not justify replacing a stable system merely because a newer project exists, and it does not turn an implementer's opinion into independent approval.

Contributing

Focused contributions are welcome. Please read CONTRIBUTING.md, SECURITY.md, and the Code of Conduct.

License

Licensed under the Apache License 2.0. Attribution information is in NOTICE.

About

Evidence-led, open-source-first engineering Skill for project audits, OSS transformation, root-cause diagnosis, UI/UX quality gates, project rescue, and release readiness for AI coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages