Skip to content

Commit f0b01a8

Browse files
fix: address repository review findings
1 parent 9c4a94e commit f0b01a8

24 files changed

Lines changed: 76 additions & 58 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,19 @@ jobs:
5050
print('JSON ok')
5151
PY
5252
53-
- name: Parse YAML files
53+
- name: Validate YAML metadata
5454
run: |
5555
python3 - <<'PY'
5656
import pathlib
57-
try:
58-
import yaml
59-
except ImportError:
60-
print('PyYAML unavailable; skipping YAML parse')
61-
raise SystemExit(0)
62-
for path in list(pathlib.Path('.').rglob('*.yml')) + list(pathlib.Path('.').rglob('*.yaml')):
63-
yaml.safe_load(open(path, encoding='utf-8'))
64-
print('YAML ok')
57+
from scripts.validate_skill import parse_openai_agent_metadata
58+
59+
for path in pathlib.Path('skills').glob('*/agents/openai.yaml'):
60+
_, failures = parse_openai_agent_metadata(path.read_text(encoding='utf-8'))
61+
if failures:
62+
for failure in failures:
63+
print(f'{path}: {failure}')
64+
raise SystemExit(1)
65+
print('YAML metadata ok')
6566
PY
6667
6768
- name: Lint Tessl plugin

.github/workflows/publish-tessl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
contents: read
1515

1616
concurrency:
17-
group: publish-tessl-${{ github.event.release.tag_name || github.run_id }}
17+
group: publish-tessl-${{ github.event.release.tag_name || inputs.ref || github.ref }}
1818
cancel-in-progress: false
1919

2020
jobs:

.github/workflows/release-please.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,6 @@ jobs:
2828
config-file: release-please-config.json
2929
manifest-file: .release-please-manifest.json
3030

31-
- name: Trigger Tessl publish
32-
if: ${{ steps.release.outputs.release_created == 'true' }}
33-
env:
34-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
TAG_NAME: ${{ steps.release.outputs.tag_name }}
36-
run: |
37-
set -euo pipefail
38-
39-
if [ -z "${TAG_NAME:-}" ]; then
40-
echo "Release Please reported a release but did not output tag_name." >&2
41-
exit 1
42-
fi
43-
44-
gh workflow run publish-tessl.yml --repo "$GITHUB_REPOSITORY" --ref main -f ref="$TAG_NAME"
45-
4631
- name: Find release PR
4732
id: release-pr
4833
env:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Java Streams Skill for AI Agents
22

3-
[![tessl](https://img.shields.io/endpoint?url=https%3A%2F%2Fapi.tessl.io%2Fv1%2Fbadges%2Fmartinfrancois%2Fjava-streams)](https://tessl.io/registry/martinfrancois/java-streams)
4-
53
AI agents often know Java streams well enough to chain `filter`, `map`, and `collect`, but not
64
enough to choose the right stream operation for the job in new code, reviews, and cleanup.
75

@@ -33,7 +31,8 @@ may be different from the right code for Java 17, Java 21, or Java 24.
3331

3432
### 1. Install
3533

36-
Install the published Tessl plugin using the option that fits your setup:
34+
This repository is private and the Tessl plugin has not been published yet. After the first public
35+
Tessl publish, install it using the option that fits your setup:
3736

3837
| Tool | Command |
3938
| --- | --- |

docs/agents/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ wording.
1616
- The README may say agents that support skill auto-selection, such as Codex and Claude Code, can
1717
select the skill from context.
1818
- Install examples should use `martinfrancois/java-streams`.
19+
- If the Tessl package is not published yet, say that clearly before install commands and do not add
20+
live registry badges or links that currently 404.
1921
- Keep a table of contents after the intro and before `Getting Started`.
2022
- Avoid fixed benchmark claims unless they match the latest hosted eval run.
2123
- When discussing evals, distinguish main eval lift scenarios from reference/regression scenarios.

evals-reference/06-inventory-summary/criteria.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"context": "Main eval stream cleanup: materialized intermediate lists and manual joining should become direct stream terminals while preserving Java 8 compatibility.",
2+
"context": "Reference stream cleanup: materialized intermediate lists and manual joining should become direct stream terminals while preserving Java 8 compatibility.",
33
"type": "weighted_checklist",
44
"checklist": [
55
{

evals-reference/07-catalog-feed/criteria.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"context": "Main eval cleanup: stream of Optionals, null-sensitive sorting, and duplicate-key collector behavior.",
2+
"context": "Reference cleanup: stream of Optionals, null-sensitive sorting, and duplicate-key collector behavior.",
33
"type": "weighted_checklist",
44
"checklist": [
55
{

evals-reference/08-primary-contact-review/criteria.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"context": "Main eval review: reject a proposed findAny and parallelStream change that loses priority ordering.",
2+
"context": "Reference review: reject a proposed findAny and parallelStream change that loses priority ordering.",
33
"type": "weighted_checklist",
44
"checklist": [
55
{

evals-reference/09-order-collector-report/criteria.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"context": "Main eval implementation: choose stream collectors that express map and aggregate semantics without manual mutable loops.",
2+
"context": "Reference implementation: choose stream collectors that express map and aggregate semantics without manual mutable loops.",
33
"type": "weighted_checklist",
44
"checklist": [
55
{

evals-reference/10-packet-window-cleanup/criteria.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"context": "Main eval cleanup: takeWhile/dropWhile are prefix operations; filter would silently change packet-window behavior.",
2+
"context": "Reference cleanup: takeWhile/dropWhile are prefix operations; filter would silently change packet-window behavior.",
33
"type": "weighted_checklist",
44
"checklist": [
55
{

0 commit comments

Comments
 (0)