Skip to content

Commit 0552663

Browse files
author
PartMe AI
committed
docs: rewrite bilingual README from full-stack-doc template
1 parent 98c2854 commit 0552663

2 files changed

Lines changed: 286 additions & 79 deletions

File tree

‎README.en.md‎

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# CodeReview(提交语义审查)
2+
3+
> Logic and security review of staged commits, with consent
4+
5+
**Version**: 0.4.0 · **License**: Apache-2.0 · **Skills**: 8
6+
7+
[简体中文](README.md) · [Install](#installation) · [Quick start](#quick-start) · [Project layout](#project-layout)
8+
9+
## Positioning
10+
11+
Consent-based semantic review of staged commits through Open Code Review delegation or a configured model. Findings remain advisory.
12+
13+
This plugin belongs to the engineering-tools line and is for users who need a real operation on a repository or service with verifiable results.
14+
15+
## At a glance
16+
17+
```text
18+
repository / service / config / request
19+
│
20+
▼
21+
CodeReview(提交语义审查) skill (inspect → plan → execute → verify)
22+
│
23+
├── MCP server
24+
└── pinned CLI / API
25+
│
26+
▼
27+
change + evidence + rollback path
28+
```
29+
30+
## Capabilities and boundaries
31+
32+
| Capability | What it does | Boundary |
33+
|---|---|---|
34+
| Inspect | Read current state and configuration | No edits without authorization |
35+
| Plan | State steps and impact | High-risk actions need explicit confirmation |
36+
| Execute | Operate through MCP or pinned tools | No bypassing permissions or audit |
37+
| Verify | Read back results, logs, and state | Exit code 0 is not goal completion |
38+
| Recover | Keep a rollback path and evidence | No automatic replay when uncertain |
39+
40+
## Architecture and core flow
41+
42+
```text
43+
Host / agent
44+
│ invokes a skill
45+
▼
46+
skills/codereview-plugin-* ──► MCP server / pinned CLI
47+
│
48+
▼
49+
target system / repository
50+
│
51+
▼
52+
read back, verify, report
53+
```
54+
55+
Rules:
56+
57+
1. Inspect read-only, then plan, then execute.
58+
2. State the target, scope, credentials, and rollback.
59+
3. Read the real target after execution; do not trust only the exit code.
60+
4. Stop and report when uncertain; never auto-retry side effects.
61+
62+
## Compatibility
63+
64+
| Item | Status |
65+
|---|---|
66+
| Host | Hosts with MCP support |
67+
| Runtime | Follow the plugin manifest and actual environment |
68+
| Platforms | Follow release notes and the target system |
69+
70+
## Installation
71+
72+
```bash
73+
codex plugin marketplace add partme-ai/full-stack-plugins
74+
codex plugin add codereview-plugin@full-stack-plugins
75+
```
76+
77+
Restart the host and start read-only.
78+
79+
## Quick start
80+
81+
1. Confirm target, environment, permissions, and impact.
82+
2. Inspect current state and record a baseline.
83+
3. Make one bounded change.
84+
4. Read back target state, logs, and key metrics.
85+
5. Keep evidence; recover through the rollback path on failure.
86+
87+
## Configuration
88+
89+
Configure the MCP endpoint, authentication, and target environment per plugin docs. Never commit tokens, passwords, or private keys.
90+
91+
## Extension contract
92+
93+
New skills use the `codereview-plugin-` prefix, declare triggers, permission boundaries, and failure handling, operate through MCP or pinned tools, and read back after every change.
94+
95+
## Retry, idempotency, and recovery
96+
97+
- Inspect the current target state after a failure.
98+
- Do not replay operations with side effects.
99+
- Confirm idempotency and rollback before retrying.
100+
- Keep command, log, and result evidence.
101+
102+
## Data and state
103+
104+
- Read credentials only from secure configuration.
105+
- Record state before and after the change.
106+
- Do not copy production data to uncontrolled directories.
107+
108+
## Security
109+
110+
- Follow least privilege.
111+
- Require explicit confirmation for high-risk actions.
112+
- On a suspected credential leak, rotate before cleaning traces.
113+
- Never bypass audit, permissions, or branch protection.
114+
115+
## Observability and operation
116+
117+
Record command, target, time, result, and key metrics; read back real state before delivery.
118+
119+
## Development and verification
120+
121+
```bash
122+
node --test
123+
python3 -m pytest
124+
```
125+
126+
## Packaging and release
127+
128+
Version matches manifests, marketplace, and tag; after release, reinstall and run one read-only inspection.
129+
130+
## Upgrade and migration
131+
132+
Back up configuration and state; confirm compatibility; reverify connectivity and permissions after migration.
133+
134+
## Troubleshooting
135+
136+
| Symptom | Check |
137+
|---|---|
138+
| Connection fails | Endpoint, network, authentication |
139+
| Permission denied | Role and token scope |
140+
| No effect | Read back target state and logs |
141+
| Uncertain result | Stop retrying and inspect the target |
142+
143+
## Project layout
144+
145+
```text
146+
codereview-plugin/
147+
├── .zcode-plugin/ # ZCode manifest
148+
├── .codex-plugin/ # Codex manifest
149+
├── skills/ # 8 skills
150+
├── docs/ # architecture and verification
151+
└── assets/ # icons and static assets
152+
```
153+
154+
## Contributing and support
155+
156+
Include plugin version, host, target environment, command, log, and expected result. Do not attach credentials or production data.
157+
158+
## License
159+
160+
Apache-2.0. See [LICENSE](LICENSE).

0 commit comments

Comments
 (0)