pgsrip 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pgsrip-0.3.0/.claude/hooks/session_start.py +33 -0
- pgsrip-0.3.0/.claude/rules/architecture.md +9 -0
- pgsrip-0.3.0/.claude/rules/corrupted-data.md +12 -0
- pgsrip-0.3.0/.claude/rules/knowledge.md +33 -0
- pgsrip-0.3.0/.claude/rules/ocr-batching.md +18 -0
- pgsrip-0.3.0/.claude/rules/rip-e2e-tests.md +14 -0
- pgsrip-0.3.0/.claude/rules/tests.md +11 -0
- pgsrip-0.3.0/.claude/rules/tooling.md +13 -0
- pgsrip-0.3.0/.claude/settings.json +78 -0
- pgsrip-0.3.0/.claude/skills/investigate/SKILL.md +28 -0
- pgsrip-0.3.0/.claude/skills/investigate/templates/README.md +14 -0
- pgsrip-0.3.0/.claude/skills/investigate/templates/findings.md +22 -0
- pgsrip-0.3.0/.claude/skills/knowledge-audit/SKILL.md +31 -0
- pgsrip-0.3.0/.claude/skills/plan/SKILL.md +20 -0
- pgsrip-0.3.0/.claude/skills/plan/templates/plan.md +23 -0
- pgsrip-0.3.0/.claude/skills/release/SKILL.md +32 -0
- pgsrip-0.3.0/.claude/skills/resume/SKILL.md +17 -0
- pgsrip-0.3.0/.claude/skills/ship/SKILL.md +48 -0
- pgsrip-0.3.0/.claude/skills/spec/SKILL.md +22 -0
- pgsrip-0.3.0/.claude/skills/spec/templates/spec.md +27 -0
- pgsrip-0.3.0/.claude/skills/triage-issue/SKILL.md +58 -0
- pgsrip-0.3.0/.claude/skills/writing-style/SKILL.md +51 -0
- pgsrip-0.3.0/.claude/skills/writing-style/reference.md +52 -0
- pgsrip-0.3.0/.github/pull_request_template.md +14 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/workflows/publish.yml +1 -1
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/workflows/test.yml +11 -2
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.gitignore +8 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.pre-commit-config.yaml +6 -0
- pgsrip-0.3.0/CHANGELOG.md +414 -0
- pgsrip-0.3.0/CLAUDE.md +62 -0
- pgsrip-0.3.0/CONTRIBUTING.md +56 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/Dockerfile +8 -3
- pgsrip-0.3.0/PKG-INFO +333 -0
- pgsrip-0.3.0/README.md +294 -0
- pgsrip-0.3.0/docs/architecture.md +87 -0
- pgsrip-0.3.0/docs/bug-reports.md +105 -0
- pgsrip-0.3.0/docs/corrupted_data.md +15 -0
- pgsrip-0.3.0/docs/images/before-after.png +0 -0
- pgsrip-0.3.0/docs/ocr_batching.md +98 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/docs/rip-e2e.md +28 -24
- pgsrip-0.3.0/docs/usage.md +451 -0
- pgsrip-0.3.0/docs/workflow.md +68 -0
- pgsrip-0.3.0/pgsrip/__init__.py +20 -0
- pgsrip-0.3.0/pgsrip/api.py +217 -0
- pgsrip-0.3.0/pgsrip/cli/__init__.py +731 -0
- pgsrip-0.3.0/pgsrip/cli/plugins.py +255 -0
- pgsrip-0.3.0/pgsrip/cue.py +40 -0
- pgsrip-0.3.0/pgsrip/diagnostics.py +103 -0
- pgsrip-0.3.0/pgsrip/engines/__init__.py +13 -0
- pgsrip-0.3.0/pgsrip/engines/auto.py +104 -0
- pgsrip-0.3.0/pgsrip/engines/base.py +79 -0
- pgsrip-0.3.0/pgsrip/engines/chain.py +78 -0
- pgsrip-0.3.0/pgsrip/engines/openai.py +309 -0
- pgsrip-0.3.0/pgsrip/engines/rapidocr.py +364 -0
- {pgsrip-0.2.0/pgsrip → pgsrip-0.3.0/pgsrip/engines}/tessdata.py +66 -75
- pgsrip-0.3.0/pgsrip/engines/tesseract.py +497 -0
- pgsrip-0.3.0/pgsrip/engines/tsv.py +73 -0
- pgsrip-0.3.0/pgsrip/errors.py +2 -0
- pgsrip-0.3.0/pgsrip/formats/__init__.py +0 -0
- pgsrip-0.3.0/pgsrip/formats/pgs.py +624 -0
- {pgsrip-0.2.0/pgsrip → pgsrip-0.3.0/pgsrip/formats}/scrub.py +26 -73
- pgsrip-0.3.0/pgsrip/media.py +277 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/pgsrip/media_path.py +30 -29
- pgsrip-0.3.0/pgsrip/options.py +45 -0
- pgsrip-0.3.0/pgsrip/plugin.py +29 -0
- pgsrip-0.3.0/pgsrip/postprocessors/__init__.py +7 -0
- pgsrip-0.3.0/pgsrip/postprocessors/base.py +38 -0
- pgsrip-0.3.0/pgsrip/postprocessors/cleanit.py +69 -0
- pgsrip-0.3.0/pgsrip/sources/__init__.py +13 -0
- pgsrip-0.3.0/pgsrip/sources/base.py +87 -0
- pgsrip-0.3.0/pgsrip/sources/mkvtoolnix.py +59 -0
- pgsrip-0.3.0/pgsrip/sources/raw.py +23 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/pgsrip/track_flags.py +20 -41
- pgsrip-0.3.0/pgsrip/utils.py +83 -0
- pgsrip-0.3.0/pgsrip/writers/__init__.py +5 -0
- pgsrip-0.3.0/pgsrip/writers/base.py +19 -0
- pgsrip-0.3.0/pgsrip/writers/srt.py +31 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/pyproject.toml +20 -5
- pgsrip-0.3.0/scripts/check_knowledge.py +159 -0
- pgsrip-0.3.0/tests/conftest.py +46 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/fabricate.py +58 -42
- pgsrip-0.3.0/tests/test_api.py +526 -0
- pgsrip-0.3.0/tests/test_check_knowledge.py +85 -0
- pgsrip-0.3.0/tests/test_cli.py +90 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/test_diagnostics.py +10 -9
- pgsrip-0.3.0/tests/test_engines.py +820 -0
- pgsrip-0.3.0/tests/test_media.py +112 -0
- pgsrip-0.3.0/tests/test_media_path.py +139 -0
- pgsrip-0.3.0/tests/test_openai.py +451 -0
- pgsrip-0.3.0/tests/test_pgs.py +169 -0
- pgsrip-0.3.0/tests/test_postprocess.py +312 -0
- pgsrip-0.3.0/tests/test_rapidocr.py +180 -0
- pgsrip-0.3.0/tests/test_rip_e2e.py +576 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/test_rip_e2e.yml +26 -1
- pgsrip-0.3.0/tests/test_samples.py +118 -0
- pgsrip-0.3.0/tests/test_scrub.py +301 -0
- pgsrip-0.3.0/tests/test_tessdata.py +295 -0
- pgsrip-0.2.0/tests/test_mkvtrack.py → pgsrip-0.3.0/tests/test_track.py +10 -6
- pgsrip-0.2.0/tests/test_mkvtrack.yml → pgsrip-0.3.0/tests/test_track.yml +0 -34
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/test_track_flags.py +18 -18
- pgsrip-0.3.0/tests/test_utils.py +53 -0
- pgsrip-0.3.0/tests/test_writers.py +83 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/uv.lock +405 -2
- pgsrip-0.2.0/CHANGELOG.md +0 -122
- pgsrip-0.2.0/CLAUDE.md +0 -37
- pgsrip-0.2.0/PKG-INFO +0 -311
- pgsrip-0.2.0/README.md +0 -278
- pgsrip-0.2.0/docs/architecture.md +0 -15
- pgsrip-0.2.0/docs/corrupted_data.md +0 -7
- pgsrip-0.2.0/docs/ocr_batching.md +0 -13
- pgsrip-0.2.0/pgsrip/__init__.py +0 -19
- pgsrip-0.2.0/pgsrip/api.py +0 -24
- pgsrip-0.2.0/pgsrip/cli.py +0 -604
- pgsrip-0.2.0/pgsrip/core.py +0 -127
- pgsrip-0.2.0/pgsrip/diagnostics.py +0 -149
- pgsrip-0.2.0/pgsrip/media.py +0 -253
- pgsrip-0.2.0/pgsrip/mkv.py +0 -160
- pgsrip-0.2.0/pgsrip/options.py +0 -103
- pgsrip-0.2.0/pgsrip/pgs.py +0 -450
- pgsrip-0.2.0/pgsrip/ripper.py +0 -247
- pgsrip-0.2.0/pgsrip/sup.py +0 -20
- pgsrip-0.2.0/pgsrip/tsv.py +0 -72
- pgsrip-0.2.0/pgsrip/utils.py +0 -39
- pgsrip-0.2.0/tests/conftest.py +0 -23
- pgsrip-0.2.0/tests/test_cli.py +0 -12
- pgsrip-0.2.0/tests/test_core.py +0 -264
- pgsrip-0.2.0/tests/test_media_path.py +0 -106
- pgsrip-0.2.0/tests/test_rip_e2e.py +0 -251
- pgsrip-0.2.0/tests/test_samples.py +0 -94
- pgsrip-0.2.0/tests/test_scrub.py +0 -247
- pgsrip-0.2.0/tests/test_tessdata.py +0 -240
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.dockerignore +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/ISSUE_TEMPLATE/question.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/dependabot.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/.github/workflows/docker-publish.yml +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/LICENSE +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/pgsrip/__main__.py +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/scripts/test.sh +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/__init__.py +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/samples/README.md +0 -0
- {pgsrip-0.2.0 → pgsrip-0.3.0}/tests/samples/placeholder.en.sup +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""SessionStart hook: show the local work item of the current branch.
|
|
2
|
+
|
|
3
|
+
A branch like ``fix/135-pts-zero`` maps to ``plans/135-*/``. The hook prints the item's ``README.md`` so the
|
|
4
|
+
new session knows the stage and the next step. It prints nothing when there is no match.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import io
|
|
10
|
+
import re
|
|
11
|
+
import subprocess
|
|
12
|
+
import sys
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
|
|
15
|
+
ROOT = Path(__file__).resolve().parent.parent.parent
|
|
16
|
+
MAX_LINES = 40
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def main() -> None:
|
|
20
|
+
if isinstance(sys.stdout, io.TextIOWrapper):
|
|
21
|
+
sys.stdout.reconfigure(encoding='utf-8')
|
|
22
|
+
result = subprocess.run(['git', 'branch', '--show-current'], cwd=ROOT, capture_output=True, text=True)
|
|
23
|
+
issue = re.search(r'/(\d+)-', result.stdout.strip())
|
|
24
|
+
if not issue:
|
|
25
|
+
return
|
|
26
|
+
for readme in sorted((ROOT / 'plans').glob(f'{issue.group(1)}-*/README.md')):
|
|
27
|
+
lines = readme.read_text(encoding='utf-8').splitlines()[:MAX_LINES]
|
|
28
|
+
print(f'Work item for this branch: {readme.parent.relative_to(ROOT).as_posix()}/ (see docs/workflow.md)')
|
|
29
|
+
print('\n'.join(lines))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
main()
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "pgsrip/formats/pgs.py"
|
|
4
|
+
- "pgsrip/media.py"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Corrupted data
|
|
8
|
+
|
|
9
|
+
Malformed PGS input is normal. Log and drop a bad item. Do not stop the whole rip. Do not change a
|
|
10
|
+
graceful fallback into an error unless the user agrees.
|
|
11
|
+
|
|
12
|
+
Read `docs/corrupted_data.md` before you change parsing, `make_item`, or the `None` handling.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "**/*.md"
|
|
4
|
+
- ".claude/**"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Knowledge files: where each fact goes
|
|
8
|
+
|
|
9
|
+
Each fact has one owner file. Other files link to the owner. Do not copy the fact.
|
|
10
|
+
|
|
11
|
+
| Load tier | File | Put here |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| HOT (every session) | `CLAUDE.md` | Commands and rules that almost every task needs. Keep it short. |
|
|
14
|
+
| COLD (linked) | `CONTRIBUTING.md` | Setup, branch, commit, and PR rules, for humans and AI. `ship` reads it. |
|
|
15
|
+
| WARM (by path) | `.claude/rules/<topic>.md` | A constraint for some paths: 1-5 lines, then a link to the doc. |
|
|
16
|
+
| WARM (by task) | `.claude/skills/<name>/SKILL.md` | A repeated procedure. Templates go next to it. |
|
|
17
|
+
| COLD (linked) | `docs/<topic>.md` | Domain knowledge, design, and reasons. Humans read it too. |
|
|
18
|
+
| Local | `plans/<item>/` | Work in progress. See `docs/workflow.md`. |
|
|
19
|
+
|
|
20
|
+
Rules for knowledge files:
|
|
21
|
+
|
|
22
|
+
- The HOT files cost tokens in every session. Add a line there only when almost every task needs it.
|
|
23
|
+
Move everything else to a rule, a skill, or a doc. Do not import other files into `CLAUDE.md`.
|
|
24
|
+
- Keep each skill `description` short (about 40 tokens). Give it the trigger words. Add
|
|
25
|
+
`disable-model-invocation: true` to a skill that only a person must start.
|
|
26
|
+
- A rule has `paths:` frontmatter. Every glob must match a tracked file (`scripts/check_knowledge.py`
|
|
27
|
+
checks it).
|
|
28
|
+
- Write paths in backticks, relative to the repo root, so the check can find them.
|
|
29
|
+
- Write what is true now. Do not write history ("we changed X to Y"). Git keeps the history.
|
|
30
|
+
- Write in STE100 (`writing-style` skill).
|
|
31
|
+
- Do not save project facts in personal Claude memory. Put them in the repo, so every contributor gets
|
|
32
|
+
them.
|
|
33
|
+
- When your change makes a statement wrong, fix it in the same commit.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "pgsrip/engines/chain.py"
|
|
4
|
+
- "pgsrip/engines/openai.py"
|
|
5
|
+
- "pgsrip/engines/tesseract.py"
|
|
6
|
+
- "pgsrip/engines/tsv.py"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# OCR batching
|
|
10
|
+
|
|
11
|
+
Keep the number of tesseract calls low. This is more important than simple code. Many subtitle bitmaps go
|
|
12
|
+
into a few large composite images, about one for each worker. Each image is one `image_to_data` call, and
|
|
13
|
+
the calls run in parallel.
|
|
14
|
+
|
|
15
|
+
The OpenAI-compatible engine is different. It sends one request for each text line of each item, on purpose.
|
|
16
|
+
One image never holds more than one item.
|
|
17
|
+
|
|
18
|
+
Read `docs/ocr_batching.md` before you change the batching, the composite size, or the retry passes.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "tests/fabricate.py"
|
|
4
|
+
- "tests/test_rip_e2e.py"
|
|
5
|
+
- "tests/test_rip_e2e.yml"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# End-to-end rip tests
|
|
9
|
+
|
|
10
|
+
The tests make media from parameters, rip it through the CLI, and check the `.srt` files. Tesseract is
|
|
11
|
+
always a fake. MKVToolNix is a fake by default, and real with `--media-backend real`. A test of a writer
|
|
12
|
+
that the CLI does not have calls `api.rip` directly.
|
|
13
|
+
|
|
14
|
+
Read `docs/rip-e2e.md` for the fabrication API and the backend model.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "tests/**"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Tests
|
|
7
|
+
|
|
8
|
+
- Bug fix: commit a failing test that shows the bug first, then the fix. See `docs/workflow.md`.
|
|
9
|
+
- Add only scrubbed subtitle samples. Real subtitle images are copyrighted content. See
|
|
10
|
+
`tests/samples/README.md`.
|
|
11
|
+
- Run with quiet flags: `uv run pytest -q --tb=short tests`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
paths:
|
|
3
|
+
- "pyproject.toml"
|
|
4
|
+
- ".pre-commit-config.yaml"
|
|
5
|
+
- ".github/workflows/**"
|
|
6
|
+
- "scripts/**"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Tooling
|
|
10
|
+
|
|
11
|
+
These files define the commands and checks. When you change one, make sure that the commands in
|
|
12
|
+
`CLAUDE.md` and the setup in `CONTRIBUTING.md` are still correct, and that `scripts/test.sh` still runs the
|
|
13
|
+
same checks as CI.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(uv run pytest *)",
|
|
5
|
+
"Bash(uv run ruff *)",
|
|
6
|
+
"Bash(uv run mypy *)",
|
|
7
|
+
"Bash(uv run python scripts/check_knowledge.py *)",
|
|
8
|
+
"Bash(bash scripts/test.sh)",
|
|
9
|
+
"Bash(git status *)",
|
|
10
|
+
"Bash(git log *)",
|
|
11
|
+
"Bash(git diff *)",
|
|
12
|
+
"Bash(gh issue view *)",
|
|
13
|
+
"Bash(gh issue list *)",
|
|
14
|
+
"Bash(gh pr view *)",
|
|
15
|
+
"Bash(gh label list *)",
|
|
16
|
+
"PowerShell(uv run pytest *)",
|
|
17
|
+
"PowerShell(uv run ruff *)",
|
|
18
|
+
"PowerShell(uv run mypy *)",
|
|
19
|
+
"PowerShell(uv run python scripts/check_knowledge.py *)",
|
|
20
|
+
"PowerShell(bash scripts/test.sh)",
|
|
21
|
+
"PowerShell(git status *)",
|
|
22
|
+
"PowerShell(git log *)",
|
|
23
|
+
"PowerShell(git diff *)",
|
|
24
|
+
"PowerShell(gh issue view *)",
|
|
25
|
+
"PowerShell(gh issue list *)",
|
|
26
|
+
"PowerShell(gh pr view *)",
|
|
27
|
+
"PowerShell(gh label list *)",
|
|
28
|
+
"Bash(podman logs *)",
|
|
29
|
+
"Bash(podman info *)",
|
|
30
|
+
"Bash(podman --version)",
|
|
31
|
+
"Bash(ffprobe *)",
|
|
32
|
+
"Bash(mediainfo --Output=JSON *)",
|
|
33
|
+
"Bash(tesseract --version)",
|
|
34
|
+
"Bash(mediainfo --version)",
|
|
35
|
+
"Bash(mkvmerge -i *)",
|
|
36
|
+
"PowerShell(podman logs *)",
|
|
37
|
+
"PowerShell(podman info *)",
|
|
38
|
+
"PowerShell(podman --version)",
|
|
39
|
+
"PowerShell(ffprobe *)",
|
|
40
|
+
"PowerShell(mediainfo --Output=JSON *)",
|
|
41
|
+
"PowerShell(tesseract --version)",
|
|
42
|
+
"PowerShell(mediainfo --version)",
|
|
43
|
+
"PowerShell(mkvmerge -i *)",
|
|
44
|
+
"PowerShell(Select-String *)",
|
|
45
|
+
"Bash(uv run pgsrip doctor)",
|
|
46
|
+
"Bash(uv run pgsrip rip --help)",
|
|
47
|
+
"Bash(uv run pgsrip scrub --help)",
|
|
48
|
+
"Bash(podman ps *)",
|
|
49
|
+
"Bash(uv pip list *)",
|
|
50
|
+
"PowerShell(uv run pgsrip doctor)",
|
|
51
|
+
"PowerShell(uv run pgsrip rip --help)",
|
|
52
|
+
"PowerShell(uv run pgsrip scrub --help)",
|
|
53
|
+
"PowerShell(podman ps *)",
|
|
54
|
+
"PowerShell(uv pip list *)",
|
|
55
|
+
"Bash(wsl -l *)",
|
|
56
|
+
"PowerShell(wsl -l *)",
|
|
57
|
+
"PowerShell(Select-Object *)"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"skillOverrides": {
|
|
61
|
+
"dataviz": "user-invocable-only",
|
|
62
|
+
"claude-api": "user-invocable-only",
|
|
63
|
+
"schedule": "user-invocable-only"
|
|
64
|
+
},
|
|
65
|
+
"hooks": {
|
|
66
|
+
"SessionStart": [
|
|
67
|
+
{
|
|
68
|
+
"hooks": [
|
|
69
|
+
{
|
|
70
|
+
"type": "command",
|
|
71
|
+
"command": "uv run --no-project python \"$CLAUDE_PROJECT_DIR/.claude/hooks/session_start.py\" 2>/dev/null || true",
|
|
72
|
+
"timeout": 30
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: investigate
|
|
3
|
+
description: Start work on an issue. Reproduce it, find the root cause, write findings and a failing test. Use to investigate, reproduce, or debug.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Investigate
|
|
7
|
+
|
|
8
|
+
Read `docs/workflow.md` first. It defines the work folder, the names, and the size decision.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. Get the issue: `gh issue view <n> --comments`.
|
|
13
|
+
2. Create `plans/<n>-<slug>/` if it does not exist. Copy `templates/README.md` into it and fill it.
|
|
14
|
+
Set `Stage: investigate`.
|
|
15
|
+
3. Create the branch from an up-to-date `main`: `fix/<n>-<slug>` or `feat/<n>-<slug>`.
|
|
16
|
+
4. Reproduce the problem:
|
|
17
|
+
- Put scripts and sample files in `plans/<n>-<slug>/repro/`.
|
|
18
|
+
- Try first with the fake backends of the tests (`tests/fabricate.py`). A test that does not need real
|
|
19
|
+
media is better.
|
|
20
|
+
- If you need real media, use a scrubbed sample. Never commit media.
|
|
21
|
+
5. Find the root cause. Read the path-scoped rule and the linked doc of each module that you touch.
|
|
22
|
+
Check each claim in the code. Do not guess.
|
|
23
|
+
6. Write `findings.md` from `templates/findings.md`. For a small item, notes in `notes.md` are enough.
|
|
24
|
+
7. For a bug: write a regression test that fails now. Commit it alone as `test: ...`.
|
|
25
|
+
8. Decide the size (small or large) and write it in `README.md`.
|
|
26
|
+
9. Update `README.md`: last result and next step. Then:
|
|
27
|
+
- Small: continue with the fix, then `ship`.
|
|
28
|
+
- Large: stop, and propose the `spec` skill.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# <#n or date> — <title>
|
|
2
|
+
|
|
3
|
+
- Issue: <https://github.com/ratoaq2/pgsrip/issues/n, or "none">
|
|
4
|
+
- Branch: <fix/n-slug>
|
|
5
|
+
- Size: <small | large>
|
|
6
|
+
- Stage: <investigate | spec | plan | implement | ship | done>
|
|
7
|
+
|
|
8
|
+
## Last result
|
|
9
|
+
|
|
10
|
+
<One to three sentences: what the last session did and found.>
|
|
11
|
+
|
|
12
|
+
## Next step
|
|
13
|
+
|
|
14
|
+
<One concrete action. A new session starts here.>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# <#n> — findings
|
|
2
|
+
|
|
3
|
+
## Symptom
|
|
4
|
+
|
|
5
|
+
<What the user sees. Quote the error or the wrong output exactly.>
|
|
6
|
+
|
|
7
|
+
## Reproduction
|
|
8
|
+
|
|
9
|
+
<Command, input file (in `repro/`), and the result. Say if it reproduces with the fake backends of the
|
|
10
|
+
tests, or only with real media.>
|
|
11
|
+
|
|
12
|
+
## Root cause
|
|
13
|
+
|
|
14
|
+
<File and function, and why the code fails. Keep it to the facts that you checked.>
|
|
15
|
+
|
|
16
|
+
## Measurements
|
|
17
|
+
|
|
18
|
+
<Numbers, if the issue is about size or speed. Say how you measured them.>
|
|
19
|
+
|
|
20
|
+
## Open questions
|
|
21
|
+
|
|
22
|
+
<What is not known yet.>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: knowledge-audit
|
|
3
|
+
description: Check all AI knowledge files against the code. Fix wrong, duplicated, or misplaced statements.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Knowledge audit
|
|
8
|
+
|
|
9
|
+
`ship` checks only the files that a change touches. This skill checks all of them.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Run `uv run python scripts/check_knowledge.py`. Fix each error first.
|
|
14
|
+
2. List the knowledge files: `CLAUDE.md`, `CONTRIBUTING.md`, `docs/*.md`, `.claude/rules/*.md`,
|
|
15
|
+
`.claude/skills/*/SKILL.md`.
|
|
16
|
+
3. For each file, check each statement against the code, `pyproject.toml`, the CI workflows, and
|
|
17
|
+
`gh label list`. Look for:
|
|
18
|
+
- **Wrong**: a name, a number, a command, or a behavior that the code does not have now.
|
|
19
|
+
- **Duplicated**: the same fact in two files. Keep it in the owner file (see
|
|
20
|
+
`.claude/rules/knowledge.md`). Replace the other copy with a link.
|
|
21
|
+
- **Misplaced**: a HOT line that only some tasks need. Move it to a rule, a skill, or a doc.
|
|
22
|
+
- **Missing**: a module without a line in `docs/architecture.md`, or a rule `paths:` glob that does not
|
|
23
|
+
cover a related file.
|
|
24
|
+
- **Style**: text that does not follow `writing-style`.
|
|
25
|
+
4. Check the HOT cost with `/context` in a new session:
|
|
26
|
+
- `CLAUDE.md` should stay below about 900 tokens. It imports no other file.
|
|
27
|
+
- Each project skill should stay below about 50 tokens in the skill list.
|
|
28
|
+
- The `skillOverrides` in `.claude/settings.json` should still hide the built-in skills that pgsrip
|
|
29
|
+
does not use.
|
|
30
|
+
5. Show the user a table: file, problem, and proposed fix. Apply the fixes that the user approves.
|
|
31
|
+
6. Commit as `docs: update AI knowledge files`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan
|
|
3
|
+
description: Turn an approved spec into plan.md (steps, tests, commits), then stop for approval. Use for an implementation plan.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Plan
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
1. Read the item `README.md` and `spec.md`. The spec must be approved. If it is not, stop and ask.
|
|
11
|
+
2. Read the code that each step changes. Find existing functions to use again.
|
|
12
|
+
3. Write `plan.md` from `templates/plan.md`:
|
|
13
|
+
- Steps in order. Each step has files, a change, and a check.
|
|
14
|
+
- The first commit is the failing test, for a bug.
|
|
15
|
+
- A table of deviations from the spec, with the reason for each one.
|
|
16
|
+
4. Update the `README.md`: `Stage: plan`, and next step "user approves the plan".
|
|
17
|
+
5. **Stop** for approval.
|
|
18
|
+
6. After approval, set `Stage: implement`. Do one step at a time. After each step, run its check and
|
|
19
|
+
write the result in `README.md`. If the work needs more than one round, write each round result in
|
|
20
|
+
`README.md` and keep `plan.md` correct.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# <#n> — plan
|
|
2
|
+
|
|
3
|
+
Read `spec.md` first.
|
|
4
|
+
|
|
5
|
+
## Deviations from the spec
|
|
6
|
+
|
|
7
|
+
<Table: spec said / plan does / why. Remove the section when there are none.>
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **<Step title>**
|
|
12
|
+
- Files: `<path>`
|
|
13
|
+
- Change: <what changes>
|
|
14
|
+
- Check: <the test or the command that shows that the step is done>
|
|
15
|
+
|
|
16
|
+
## Commits
|
|
17
|
+
|
|
18
|
+
1. `test: <failing regression test>`
|
|
19
|
+
2. `fix: <the fix>`
|
|
20
|
+
|
|
21
|
+
## Verification
|
|
22
|
+
|
|
23
|
+
<The full checks before `ship`: `bash scripts/test.sh`, and the manual rip if it is necessary.>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release
|
|
3
|
+
description: Release a new pgsrip version to PyPI through a GitHub release, with clean release notes.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Release
|
|
8
|
+
|
|
9
|
+
A GitHub release starts the `publish.yml` workflow. It publishes to PyPI. You cannot undo a publish.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Be on an up-to-date `main` with a clean tree. `bash scripts/test.sh` must pass.
|
|
14
|
+
2. Find the version in `pyproject.toml` and the last tag (`git describe --tags --abbrev=0`). Propose the
|
|
15
|
+
new version from the changes since the last tag. The tag has no `v` prefix (`0.2.0`), unless the
|
|
16
|
+
existing tags have one.
|
|
17
|
+
3. Update the version. In `CHANGELOG.md`, change `## Unreleased` to the version and the date. Commit
|
|
18
|
+
with `chore: release <version>` through a PR.
|
|
19
|
+
4. Generate the notes:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
gh api repos/{owner}/{repo}/releases/generate-notes -f tag_name=<tag> -f target_commitish=main --jq .body > notes.md
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
5. Edit `notes.md`:
|
|
26
|
+
- Remove the "What's Changed" lines for PRs from `dependabot[bot]` or from `dependabot/` branches.
|
|
27
|
+
- Remove the "New Contributors" lines for `dependabot[bot]` and for the repository owner.
|
|
28
|
+
- Remove each section that is then empty, with its heading.
|
|
29
|
+
6. **Show the tag, the target branch, and the notes to the user. Wait for approval.**
|
|
30
|
+
7. Run `gh release create <tag> --target main --title <tag> --notes-file notes.md`.
|
|
31
|
+
8. Check the `publish.yml` run: `gh run list --workflow publish.yml --limit 1`.
|
|
32
|
+
9. After the publish, the project sets the next development version (`chore: back to development`).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: resume
|
|
3
|
+
description: Continue a work item from its plans/ folder in a new session. Use for resume, continue, or "where were we".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Resume
|
|
7
|
+
|
|
8
|
+
1. Find the folder:
|
|
9
|
+
- The SessionStart hook shows it when the branch has an issue number.
|
|
10
|
+
- Otherwise, use the number or slug that the user gives: `plans/<n>-*/`.
|
|
11
|
+
- Otherwise, list `plans/*/README.md` with their `Stage` lines and ask the user.
|
|
12
|
+
2. Read `README.md`. Then read the stage files in this order, only as far as the current stage:
|
|
13
|
+
`findings.md`, `spec.md`, `plan.md`.
|
|
14
|
+
3. Check the real state: `git status`, `git log --oneline main..HEAD`, and `gh issue view <n>`.
|
|
15
|
+
The code and git are correct if `README.md` does not agree with them. Fix `README.md`.
|
|
16
|
+
4. Tell the user in 3 to 5 lines: stage, last result, and next step.
|
|
17
|
+
5. Do the next step with the skill for that stage: `investigate`, `spec`, `plan`, or `ship`.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ship
|
|
3
|
+
description: Check knowledge, run checks, commit, push, and open the draft PR. Use to commit, push, open a PR, or finish work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Ship
|
|
7
|
+
|
|
8
|
+
Read `CONTRIBUTING.md` first. Follow it for the branch, commit, and PR rules. Do not copy them here.
|
|
9
|
+
|
|
10
|
+
## 1. Smaller diff
|
|
11
|
+
|
|
12
|
+
Read the diff (`git diff main...`) with the "Code: lazy senior dev" steps of `CLAUDE.md`. Remove code
|
|
13
|
+
that the change does not need: unused options, new helpers that copy existing code, and extra
|
|
14
|
+
abstractions. For a large diff, also run `/simplify`.
|
|
15
|
+
|
|
16
|
+
## 2. Knowledge check
|
|
17
|
+
|
|
18
|
+
This step keeps the AI knowledge correct. Do not skip it.
|
|
19
|
+
|
|
20
|
+
1. Run `uv run python scripts/check_knowledge.py --changed`. It lists the rules that cover the changed
|
|
21
|
+
files, and the docs that the rules link to.
|
|
22
|
+
2. Read each listed rule and doc. Compare each statement with the diff (`git diff main...`).
|
|
23
|
+
3. Also check:
|
|
24
|
+
- `docs/architecture.md`, if you added, removed, or renamed a module.
|
|
25
|
+
- The commands in `CLAUDE.md` and the setup in `CONTRIBUTING.md`, if you changed the tools.
|
|
26
|
+
- `CLAUDE.md`, if the change makes one of its rules wrong.
|
|
27
|
+
4. Fix each wrong statement in the same commit as the code change. Follow `.claude/rules/knowledge.md`.
|
|
28
|
+
5. If you learned a fact that the next person needs, add it to the correct owner file.
|
|
29
|
+
|
|
30
|
+
## 3. Checks
|
|
31
|
+
|
|
32
|
+
Run `bash scripts/test.sh`. It must pass. It also runs `uv run python scripts/check_knowledge.py`.
|
|
33
|
+
Fix the failures. Do not skip hooks.
|
|
34
|
+
|
|
35
|
+
## 4. Commits
|
|
36
|
+
|
|
37
|
+
- Bug fix: the `test:` commit with the failing test must come before the `fix:` commit.
|
|
38
|
+
- One-line Conventional Commits subject. Add a `Closes #<n>` line to the fix commit.
|
|
39
|
+
- Show the user the commit list before you push.
|
|
40
|
+
|
|
41
|
+
## 5. Push and PR
|
|
42
|
+
|
|
43
|
+
1. **Ask before you push.** Then run `git push -u origin <branch>`.
|
|
44
|
+
2. Write the PR body from `.github/pull_request_template.md`. For a large item, use
|
|
45
|
+
`plans/<item>/summary.md` as the source. Write in STE100 (`writing-style` skill).
|
|
46
|
+
3. Run `gh pr create --draft --title "<plain title>" --body-file <file>`.
|
|
47
|
+
4. Read the PR diff and the body one more time. Fix problems. Then ask the user, and run `gh pr ready`.
|
|
48
|
+
5. Update the item `README.md`: `Stage: ship`, the PR link, and the next step (review or merge).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec
|
|
3
|
+
description: Write spec.md for a large work item, then stop for approval. Use for a spec, a design, or to brainstorm a solution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Spec
|
|
7
|
+
|
|
8
|
+
Use this for a large work item (see `docs/workflow.md`). A small item does not need a spec.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. Read the item `README.md`, `findings.md`, and `notes.md`.
|
|
13
|
+
2. If the goal is not clear, ask the user questions first. Ask one question at a time, and propose an
|
|
14
|
+
answer.
|
|
15
|
+
3. Find 2 or 3 approaches. For each one, check the constraints of the rules and docs of the modules that
|
|
16
|
+
it touches.
|
|
17
|
+
4. Write `spec.md` from `templates/spec.md`. Select one approach. Write why you rejected the others.
|
|
18
|
+
5. Update the `README.md`: `Stage: spec`, last result, and next step "user approves the spec".
|
|
19
|
+
6. **Stop.** Show the user a short summary and the decisions they must make. Do not write a plan before
|
|
20
|
+
the user approves.
|
|
21
|
+
7. After approval, offer to post a short STE100 summary of the approach to the issue. Post only after
|
|
22
|
+
the user agrees.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# <#n> — spec
|
|
2
|
+
|
|
3
|
+
Read `findings.md` first.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
<What must be true after the change. One or two sentences.>
|
|
8
|
+
|
|
9
|
+
## Approach
|
|
10
|
+
|
|
11
|
+
<The selected solution, and why it is correct for all inputs, not only for the reported one.>
|
|
12
|
+
|
|
13
|
+
## Rejected options
|
|
14
|
+
|
|
15
|
+
- <Option>: <why not>.
|
|
16
|
+
|
|
17
|
+
## Constraints
|
|
18
|
+
|
|
19
|
+
<The rules that apply, with links: for example `docs/ocr_batching.md` or `docs/corrupted_data.md`.>
|
|
20
|
+
|
|
21
|
+
## Tests
|
|
22
|
+
|
|
23
|
+
<The regression test that fails now, and the other tests to add.>
|
|
24
|
+
|
|
25
|
+
## Decisions for the user
|
|
26
|
+
|
|
27
|
+
<The questions that the user must answer before the plan. Remove the section when there are none.>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: triage-issue
|
|
3
|
+
description: Label a GitHub issue and draft a reply to the reporter. Use to triage, label, classify, or reply to issues.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Triage an issue
|
|
7
|
+
|
|
8
|
+
Goal: each open issue has the correct labels and, when necessary, a reply that asks for the missing
|
|
9
|
+
information.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Read the issue and its comments: `gh issue view <n> --comments`.
|
|
14
|
+
2. Check that the labels below still exist: `gh label list`. If they do not match, tell the user and
|
|
15
|
+
update this file.
|
|
16
|
+
3. Decide the labels:
|
|
17
|
+
- Exactly one `type:` label.
|
|
18
|
+
- One `status:` label while the issue waits for something. Remove it when the issue is ready for work.
|
|
19
|
+
- One `priority:` label when the issue is classified.
|
|
20
|
+
- One or more `comp:` labels.
|
|
21
|
+
- `no sample file` when a bug needs a sample and the reporter did not attach one.
|
|
22
|
+
4. Check if a bug has enough information: the pgsrip version, the command, the full error, and a sample.
|
|
23
|
+
The sample must be scrubbed. The reporter makes it with `pgsrip scrub "<media>"`. See
|
|
24
|
+
`tests/samples/README.md`.
|
|
25
|
+
5. Draft a reply in strict STE100 (`writing-style` skill). Ask for each missing item in a separate
|
|
26
|
+
sentence.
|
|
27
|
+
6. Show the labels and the reply to the user. **Wait for approval.** Then run
|
|
28
|
+
`gh issue edit <n> --add-label ... --remove-label ...` and `gh issue comment <n> --body-file <file>`.
|
|
29
|
+
7. If the user wants to start work, continue with the `investigate` skill.
|
|
30
|
+
|
|
31
|
+
## Labels
|
|
32
|
+
|
|
33
|
+
| Label | Use when |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| `type: bug` | The behavior is wrong and someone can reproduce it. |
|
|
36
|
+
| `type: feature` | A new capability or an enhancement. |
|
|
37
|
+
| `type: tech-debt` | Refactoring, dependencies, internal tools. |
|
|
38
|
+
| `type: docs` | README or other documentation. |
|
|
39
|
+
| `status: triage` | New. Nobody reviewed it yet. |
|
|
40
|
+
| `status: waiting-on-author` | We asked the reporter for information. |
|
|
41
|
+
| `status: blocked` | It waits for another project or library. |
|
|
42
|
+
| `priority: critical` | A crash or a regression for many users, or a broken build. |
|
|
43
|
+
| `priority: high` | An important bug or feature for many users. |
|
|
44
|
+
| `priority: low` | An edge case or a small improvement. |
|
|
45
|
+
| `comp: cli` | Command line, options, file selection. |
|
|
46
|
+
| `comp: ocr` | Tesseract, OCR batching, text recognition. |
|
|
47
|
+
| `comp: image-processing` | Bitmap decoding, crop, colors. |
|
|
48
|
+
| `comp: pgs` | The PGS/SUP binary format. |
|
|
49
|
+
| `comp: srt` | The `.srt` output: names, timing, text. |
|
|
50
|
+
| `no sample file` | A bug that needs a sample we do not have. |
|
|
51
|
+
|
|
52
|
+
`good first issue` and `help wanted` stay without a prefix. GitHub shows them to new contributors.
|
|
53
|
+
|
|
54
|
+
## Many issues
|
|
55
|
+
|
|
56
|
+
For a review of all open issues, run `gh issue list --state open --limit 100`. Make a table: number,
|
|
57
|
+
title, current labels, suggested labels, and one line on the next action. Do not change labels until the
|
|
58
|
+
user approves the table.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-style
|
|
3
|
+
description: ASD-STE100 rules and examples. Use to write or review docs, comments, commits, PRs, issues, release notes, or error messages.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing style (ASD-STE100)
|
|
7
|
+
|
|
8
|
+
Most readers of pgsrip are technical people who are not native English speakers. Many use a translation
|
|
9
|
+
tool. Write so that a reader or a tool cannot read a sentence in two ways.
|
|
10
|
+
|
|
11
|
+
Two modes:
|
|
12
|
+
|
|
13
|
+
- **Strict**: error messages, log messages, CLI help, procedures, and issue replies. Apply all rules.
|
|
14
|
+
- **Light**: docs, PR bodies, comments, and release notes. Apply the structure rules. Use the word rules
|
|
15
|
+
as a direction.
|
|
16
|
+
|
|
17
|
+
## Structure rules
|
|
18
|
+
|
|
19
|
+
1. One idea in each sentence. At most 20 words for an instruction, and at most 25 words for a description.
|
|
20
|
+
2. Active voice: "The ripper drops the item", not "The item is dropped".
|
|
21
|
+
3. Simple tenses: "We found", not "We have found". Keep a compound tense only when it carries
|
|
22
|
+
information, for example "may have failed".
|
|
23
|
+
4. No semicolons. Use two sentences.
|
|
24
|
+
5. No phrasal verbs: "start", not "spin up". "remove", not "take out".
|
|
25
|
+
6. Verbs, not nouns: "analyze the log", not "perform an analysis of the log".
|
|
26
|
+
7. At most 3 nouns in a row.
|
|
27
|
+
8. Use a list for 3 or more steps or conditions.
|
|
28
|
+
9. One topic in each paragraph, at most 6 sentences.
|
|
29
|
+
|
|
30
|
+
## Word rules
|
|
31
|
+
|
|
32
|
+
- Use one word for one thing in a document. Do not change between "track", "stream", and "subtitle" for
|
|
33
|
+
the same thing.
|
|
34
|
+
- Use common words. Define a domain term (PGS, ODS, PCS) once, where the reader first sees it.
|
|
35
|
+
- No filler: "simply", "just", "easily", "basically", "in order to", "leverage".
|
|
36
|
+
- No marketing adjectives: "robust", "seamless", "powerful", "blazing-fast". Give the number.
|
|
37
|
+
- No idioms and no emoji.
|
|
38
|
+
|
|
39
|
+
## Do not change
|
|
40
|
+
|
|
41
|
+
- Code, commands, log output, error text from other tools, and quotes. Copy them exactly.
|
|
42
|
+
- A hedge ("may", "sometimes"). A shorter sentence must not claim more than the source.
|
|
43
|
+
- Facts. Do not add a cause or a number that the source does not give.
|
|
44
|
+
|
|
45
|
+
## Before you finish
|
|
46
|
+
|
|
47
|
+
Scan the text for these 6 problems: many names for one thing, stacked hedges, nouns made from verbs,
|
|
48
|
+
marketing adjectives, long joined sentences, and phrasal verbs. `reference.md` has examples.
|
|
49
|
+
|
|
50
|
+
Adapted from [danyuchn/asd-ste100-skill](https://github.com/danyuchn/asd-ste100-skill) (MIT). This skill
|
|
51
|
+
does not contain the ASD-STE100 dictionary.
|