Skip to content

Commit ef0ae32

Browse files
authored
Merge pull request #8 from udx/development
Improve dev.kit audit model and engineering guidance
2 parents ea1d85b + bc2e7b4 commit ef0ae32

File tree

143 files changed

+2759
-6663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2759
-6663
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto eol=lf
2+
3+
*.sh text eol=lf
4+
*.md text eol=lf
5+
*.yaml text eol=lf
6+
*.yml text eol=lf
7+
*.svg text eol=lf

.githooks/commit-msg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
message_file=${1:?commit message file is required}
6+
subject=$(sed -n '1s/[[:space:]]*$//p' "$message_file")
7+
8+
case "$subject" in
9+
"")
10+
exit 0
11+
;;
12+
Merge\ *|Revert\ *|fixup!\ *|squash!\ *)
13+
exit 0
14+
;;
15+
esac
16+
17+
if printf '%s' "$subject" | rg -q '[A-Z]'; then
18+
printf 'dev.kit hook: commit subject must be lowercase\n' >&2
19+
printf 'received: %s\n' "$subject" >&2
20+
exit 1
21+
fi

.githooks/pre-push

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
repo_root=$(git rev-parse --show-toplevel)
6+
7+
cd "$repo_root"
8+
9+
printf 'dev.kit hook: running bash tests/run.sh before push\n' >&2
10+
bash tests/run.sh

.github/workflows/context7-ops.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
sync:
1013
uses: udx/reusable-workflows/.github/workflows/context7-ops.yml@master

.gitignore

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
1-
# dev.kit State & Hub
2-
.udx/
3-
.dev.kit/
4-
.codex/
5-
.tmp/
6-
.drift.tmp
7-
.processed.tmp
8-
tasks/
9-
10-
# OS
111
.DS_Store
12-
Thumbs.db
13-
14-
# Shell / History
15-
*.log
16-
.bash_history
17-
.zsh_history
18-
19-
# Editor
20-
.vscode/
21-
.idea/
22-
*.swp
23-
*.swo
24-
25-
# Project specific
26-
node_modules/
27-
dist/
28-
build/
29-
.venv/
30-
__pycache__/

README.md

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,67 @@
1-
# dev.kit: The Thin Empowerment Layer
1+
# dev.kit
22

3-
**Experienced engineering flow with high-fidelity, deterministic results.**
3+
![dev.kit](assets/logo.svg)
44

5-
`dev.kit` resolves the **Drift** (intent divergence) by **Normalizing** it into a deterministic path and **Iterating** to resolution. It acts as a **Thin Empowerment Layer** that bridges human intent with repository truth via **Context-Driven Engineering (CDE)**.
5+
`dev.kit` is a 12-factor repo adapter.
66

7-
### 1. Grounding (The Bridge)
8-
Intent is mapped to repo-specific logic and normalized into a deterministic execution plan.
9-
![Grounding Bridge](assets/diagrams/grounding-bridge.svg)
7+
It scans a repository for the workflow contracts that reduce drift across engineering teams: documentation, dependency contracts, config boundaries, verification entrypoints, runtime entrypoints, and build/release/run separation.
108

11-
### 2. Normalization (The Gate)
12-
Capabilities are resolved at runtime through a **Dynamic Discovery Engine** that scans script headers and skills.
13-
![Normalization Gate](assets/diagrams/normalization-boundary.svg)
9+
The goal is to make repos easier to work on the same way every time. As a repo gets closer to a 12-factor operating model, humans and agents need less tribal knowledge to build, test, run, deploy, and improve it.
1410

15-
### 3. Execution (The Engine)
16-
AI iterates through instruction steps with deterministic validation and real-time status updates.
17-
![Execution Engine](assets/diagrams/execution-engine.svg)
11+
## Commands
1812

19-
## Standard Engineering Flow
13+
`dev.kit`
2014

21-
`dev.kit` provides a **Thin Empowerment Layer** that bridges chaotic intent with deterministic repository functions.
15+
- Audits the current repo as a 12-factor engineering contract.
16+
- Returns a short improvement plan by default.
17+
- `--json` returns the same model in machine-readable form.
2218

23-
| Phase | Description | Implementation |
24-
| :--- | :--- | :--- |
25-
| **1. Grounding** | **UDX Worker** provides the isolated, pre-hydrated base environment. | [`udx/worker`](docs/reference/operations/worker-ecosystem-refs.md) |
26-
| **2. Discovery** | **Skill Mesh** resolves internal commands and `@udx` NPM packages. | [`@udx/mcurl`](docs/ai/mesh/npm.md) |
27-
| **3. Normalize** | AI Reasoning Skills transform intent into a bounded `workflow.md`. | [`SKILL.md`](docs/skills/README.md) |
28-
| **4. Execute** | Deterministic Primitives execute the logic within the CLI boundary. | `lib/commands/` |
19+
`dev.kit bridge`
2920

30-
---
21+
- Exposes the repo model for agents and automation.
22+
- Returns detected archetypes, factor statuses, entrypoints, and guidance so agents can work from grounded repo reality instead of guessing.
3123

32-
## Core Interface
24+
![compliance audit](assets/compliance-audit.svg)
3325

34-
- **`dev.kit status`**: (Default) High-fidelity engineering brief and system health.
35-
- **`dev.kit doctor`**: Verify environment health, software detection, and compliance.
36-
- **`dev.kit ai`**: Unified agent integration management and grounding.
37-
- **`dev.kit sync`**: Logical, atomic repository synchronization and drift resolution.
38-
- **`dev.kit task`**: Manage the lifecycle of active workflows and engineering sessions.
26+
![dev.kit bridge](assets/dev-kit-bridge.svg)
3927

40-
> **Execution**: Run any repository-bound skill with `dev.kit skills run <name>`.
28+
## Why It Matters
4129

42-
---
30+
Run `dev.kit` when a repo is new, drifting, hard to onboard into, or inconsistent across environments.
4331

44-
## Documentation
32+
The value is operational clarity:
4533

46-
The `dev.kit` knowledge base is structured to reflect **CDE Principles**.
34+
- develop without tribal knowledge
35+
- verify changes predictably
36+
- automate build and runtime workflows
37+
- let teammates and agents operate with less ambiguity
38+
- standardize how work moves from local changes to CI and deployment
4739

48-
- **[Foundations](docs/README.md#%EF%B8%8F-foundations)**: Core philosophy (CDE), dev.kit primitives, and methodology.
49-
- **[Runtime](docs/README.md#%EF%B8%8F-runtime)**: CLI overview, lifecycle, and execution loops.
50-
- **[AI Integration](docs/README.md#-ai-integration)**: Grounded orchestration and agent mission.
51-
- **[Best Practices](docs/foundations/best-practices.md)**: High-fidelity engineering rules and command mappings.
40+
## Install
5241

53-
---
42+
```bash
43+
bash bin/scripts/install.sh
44+
source "$HOME/.udx/dev.kit/bin/env/dev-kit.sh"
45+
dev.kit
46+
```
5447

55-
## Install
48+
## Examples
5649

5750
```bash
58-
curl -fsSL https://udx.dev/dev.kit/install.sh | bash
51+
dev.kit
52+
dev.kit --json
53+
dev.kit bridge --json
5954
```
6055

61-
## 📚 Authoritative References
56+
## Uninstall
6257

63-
The `dev.kit` mission is grounded in foundational research on high-fidelity automation and AI orchestration:
58+
```bash
59+
"$HOME/.udx/dev.kit/bin/scripts/uninstall.sh"
60+
```
6461

65-
- **[The Power of Automation](https://andypotanin.com/the-power-of-automation-how-it-has-transformed-the-software-development-process/)**: Systematic transformation of the engineering flow.
66-
- **[Observation-Driven Management](https://andypotanin.com/observation-driven-management-revolutionizing-task-assignment-efficiency-workplace/)**: Revolutionary task normalization through pattern recognition.
67-
- **[Autonomous Technical Operations](https://andypotanin.com/claude-operator-prompt/)**: Principles for high-fidelity agent grounding and execution.
62+
Further docs:
6863

69-
---
70-
_UDX DevSecOps Team_
64+
- [Workflow](/Users/jonyfq/git/udx/dev.kit/docs/workflow.md)
65+
- [Engineering Guide](/Users/jonyfq/git/udx/dev.kit/docs/engineering-guide.md)
66+
- [Pull Requests](/Users/jonyfq/git/udx/dev.kit/docs/pull-requests.md)
67+
- [Development](/Users/jonyfq/git/udx/dev.kit/docs/development.md)

assets/compliance-audit.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/compliance-improve.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/dev-kit-bridge.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/diagrams/adaptation-flow.mmd

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)