Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/webcpp-openspec-proposal/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: webcpp-openspec-proposal
description: Write or review a webcpp proposal: a library genesis, a change to a library, or an organization change, with its metadata, statuses and checks.
description: "Write or review a webcpp proposal: a library genesis, a change to a library, or an organization change, with its metadata, statuses and checks."
---

# Writing a webcpp proposal
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/webcpp-reference-status/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: webcpp-reference-status
description: Prepare or read a proposal's reference/ directory (plan, source, STATUS.md), report task progress, or resume an interrupted implementation.
description: "Prepare or read a proposal's reference/ directory (plan, source, STATUS.md), report task progress, or resume an interrupted implementation."
---

# reference/ and STATUS.md
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/webcpp-text-and-commits/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: webcpp-text-and-commits
description: Before writing any file, commit message or proposal text for a webcpporg repository: the rules on language, forbidden text, commit form and outward actions.
description: "Before writing any file, commit message or proposal text for a webcpporg repository: the rules on language, forbidden text, commit form and outward actions."
---

# Text and commits in webcpp
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/skills.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Copyright (c) 2026 WebCpp.org
#
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# https://www.boost.org/LICENSE_1_0.txt)

name: Agent skills

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
front-matter:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the YAML parser
run: |
python3 -m venv "$RUNNER_TEMP/skills-venv"
"$RUNNER_TEMP/skills-venv/bin/python" -m pip install PyYAML==6.0.3
- name: Validate skill metadata
run: |
"$RUNNER_TEMP/skills-venv/bin/python" - <<'PY'
import re
from pathlib import Path
import yaml

paths = sorted(Path('.agents/skills').glob('*/SKILL.md'))
failures = []
for path in paths:
try:
parts = re.split(r'^---\s*$', path.read_text(), maxsplit=2, flags=re.M)
if len(parts) != 3 or parts[0].strip():
raise ValueError('expected opening and closing YAML delimiters')
metadata = yaml.safe_load(parts[1])
if not isinstance(metadata, dict):
raise ValueError('front matter must be a mapping')
name = metadata.get('name')
if name != path.parent.name or not re.fullmatch(r'[a-z0-9]+(?:-[a-z0-9]+)*', name):
raise ValueError('name must match its kebab-case directory')
description = metadata.get('description')
if not isinstance(description, str) or not description.strip():
raise ValueError('description must be a nonempty string')
except (ValueError, yaml.YAMLError) as error:
failures.append(f'{path}: {error}')
if not paths:
failures.append('no agent skills found')
for failure in failures:
print(failure)
print(f'{len(paths)} skills, {len(failures)} problems')
raise SystemExit(bool(failures))
PY
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ Read the superproject's `AGENTS.md` first
(`webcpp-openspec-proposal`, `webcpp-reference-status`, `webcpp-text-and-commits`). They point
to the rules and never replace them; where one disagrees, `CONTRIBUTING.md` and the
organization's specification win.

- **Skill metadata.** `.github/workflows/skills.yml` parses each skill's YAML front matter,
requires a matching kebab-case name and a nonempty description. Chapter references are
reviewed when the rules change. OpenSpec's MIT notice is in `THIRD_PARTY_NOTICES.md`.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ libraries marked with it are published, in the superproject's `main`.
| Library | Proposal | Title | Kind | Status | Release | Decided | Implementation |
| --- | --- | --- | --- | --- | --- | --- | --- |
| organization | [genesis](organization/openspec/changes/archive/2026-10-07-genesis) | organization: the superproject, its build, its rules, its CI and its site | organization | implemented | 0.1.0 | 2026-10-07 | [code](https://github.com/webcpporg/webcpp/tree/c53f3f9) |
| organization | [agent-skills](organization/openspec/changes/agent-skills) | organization: agent skills in .agents/skills, in the proposals and the superproject | organization | draft | | | [code](https://github.com/webcpporg/webcpp) |
| organization | [contributor-identity](organization/openspec/changes/contributor-identity) | organization: every contributor commits under their own git identity | organization | draft | | | [code](https://github.com/webcpporg/webcpp) |
| organization | [site-increments-4-5](organization/openspec/changes/site-increments-4-5) | organization: the site, increments 4 and 5 (trystero's JavaScript API and the cursors; the state machine, on the server, C++ calls the browser) | organization | accepted | | 2026-10-10 | |
| organization | [agent-skills](organization/openspec/changes/archive/2026-10-13-agent-skills) | organization: agent skills in .agents/skills, in the proposals and the superproject | organization | implemented | 0.1.0 | 2026-10-13 | [code](https://github.com/webcpporg/webcpp/tree/5a441c1e90c5b242cf55c351edf6c79c37ef1f8d) |
| asio | [genesis](libraries/asio/openspec/changes/genesis) | asio: Boost.Asio natively, the browser's event loop on Emscripten | wrapper | implementing | | 2026-10-11 | |
| beast | [genesis](libraries/beast/openspec/changes/genesis) | beast: Boost.Beast natively, the browser's WebSocket and fetch on Emscripten | wrapper | draft | | | |
| config | [genesis](libraries/config/openspec/changes/archive/2026-10-09-genesis) | config: webcpp's configuration, the target, exceptions and version every library includes first | own | implemented | 0.1.0 | 2026-10-09 | [code](https://github.com/webcpporg/config/tree/2fad162) |
Expand Down
28 changes: 28 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Third-party notices

The six `.agents/skills/openspec-*/SKILL.md` files are generated documentation from
OpenSpec 1.10.0 (https://github.com/Fission-AI/OpenSpec), adapted for this repository's
several OpenSpec roots. Their MIT licence and metadata are preserved. This notice
reproduces the licence shipped in `@fission-ai/openspec@1.10.0`.

MIT License

Copyright (c) 2024 OpenSpec Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ webcpp:
title: "organization: agent skills in .agents/skills, in the proposals and the superproject"
kind: organization
port_of: null
status: draft
release: null
implementation: https://github.com/webcpporg/webcpp
decided: null
status: implemented
release: "0.1.0"
implementation: https://github.com/webcpporg/webcpp/tree/5a441c1e90c5b242cf55c351edf6c79c37ef1f8d
decided: 2026-10-13
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ that copy the rules, which would drift from `AGENTS.md` at the first change of a
`webcpp-text-and-commits` applies to both repositories and is a file in each, identical. Rejected:
a single source fetched or linked from the other repository: a symbolic link across repositories
does not exist in a clone, and an agent reads the files of the repository it is in. The duplicate
is short; O1 asks whether a check should keep the two equal.
is short; O1 below requires an explicit local comparison when either copy changes.

### D4. OpenSpec's skills, generated and adapted

Expand All @@ -63,7 +63,9 @@ the two changes.

The licence notice of the superproject's `AGENTS.md`, chapter 11, applies to source files by
suffix, and `.md` is none of them (the lint's rule `licence notice` reads the same list); a skill,
like `AGENTS.md` and `README.md`, carries none. The repository's licence covers it.
like `AGENTS.md` and `README.md`, carries no webcpp source-file notice. Chapter 11 now
explicitly names this exemption. Webcpp-authored skills are BSL-1.0; generated OpenSpec
skills retain MIT and the copyright and permission notice in `THIRD_PARTY_NOTICES.md`.

### D6. A pointer in each `AGENTS.md`

Expand All @@ -78,29 +80,57 @@ written for people proposing a library.
holding forbidden text fails it; a test in `tools/proposals_test.py` pins that for
`.agents/skills/`. The superproject's lint reads every tracked file (`git ls-files --cached
--others --exclude-standard`) for the em dash and the banned word, so it covers `.agents/` without
change.
change. Both repositories also run `.github/workflows/skills.yml` on pull requests and main:
PyYAML 6.0.3 reads actual YAML and rejects malformed front matter, a missing or blank description,
and a name that differs from its kebab-case directory. The parser is installed in an isolated
virtual environment. This catches the unquoted colon descriptions found during review.

## Risks / Trade-offs

- [A skill goes stale when a chapter is renamed] -> skills cite chapters by number and title, and a
rule change that touches a chapter a skill cites updates the skill in the same commit (O2).
rule change that touches a chapter a skill cites updates the skill in the same commit (O2); prose references are checked in review.
- [OpenSpec's generated text carries the MIT licence in a BSL-1.0 repository] -> it is generated
documentation, kept with its front matter naming its licence; O4 asks the owner to confirm.
documentation, kept with its front matter and full upstream notice; O4 records the exception.

## Migration Plan

1. Merge both pull requests; nothing else moves.
2. On archive, the requirement joins `specs/organization/spec.md`.

## Open Questions

- **O1.** Should a check (the superproject's lint or `tools/proposals.py`) refuse the two copies of
`webcpp-text-and-commits` when they differ?
- **O2.** Should the lint check that every `SKILL.md` has front matter whose `name` equals its
directory, and that every `AGENTS.md` chapter a skill cites exists?
- **O3.** Should each library's repository carry skills of its own (for instance xstate's oracle),
or do the superproject's suffice?
- **O4.** Is OpenSpec's generated text under MIT acceptable in the repository, or should webcpp
write its own OpenSpec skills instead?
- **O5.** Should `AGENTS.md`, chapter 11's licence notice list, name `SKILL.md` explicitly as a
file without a notice?
## Resolved Questions

Decided on 2026-10-13 under the owner's instruction to resolve O1 to O5, finish the implementation,
merge webcpp PR #2 and archive this proposal. These are the decisions taken for that request.

- **O1. Local comparison, no cross-repository network gate.** Keep the two
`webcpp-text-and-commits` files identical. When either changes, compare the two checked-out
files with `cmp` and update both in the same change. CI must not depend on the changing head
of another repository or on a particular checkout layout. This review compared both files.
- **O2. Validate metadata in CI; review prose references.** Each repository runs the Agent skills
workflow with a real YAML parser, checking delimiters, a mapping, a matching kebab-case name
and a nonempty string description. Chapter references remain a review responsibility: they
appear in prose, not a machine-readable reference field. A rule change updates affected
skills in the same change. All references in the five superproject skills were reviewed.
- **O3. Shared skills only.** The superproject and proposals skills suffice for this change.
A library keeps its specific rules in its own `AGENTS.md`. A future unique recurring workflow
may justify a library skill; do not copy these shared skills into each library.
- **O4. Retain upstream MIT documentation.** Keep the six generated OpenSpec skills and their
upstream metadata unchanged. `THIRD_PARTY_NOTICES.md` preserves OpenSpec 1.10.0's complete
copyright and permission notice. The organization's specification explicitly exempts this
generated documentation from its otherwise BSL-1.0-only rule; webcpp-authored text stays BSL-1.0.
- **O5. State the Markdown exemption.** Chapter 11 now explicitly says that Markdown files,
including `SKILL.md`, need no webcpp source-file notice. Upstream notices are still preserved.
The licence lint's suffix rules do not change.

## Review fixes

- Quote the descriptions of all custom skills as YAML strings. Four superproject descriptions
and two proposals descriptions originally failed to parse because they contained `: `.
- Unset `CPATH`, `CPLUS_INCLUDE_PATH` and `C_INCLUDE_PATH` once before the build example block,
so every command runs in the required environment.
- Add the metadata workflow in both repositories. Its exact script was tested against real
skills and fixtures for invalid YAML, wrong names, absent or blank descriptions, missing
delimiters and non-mapping front matter.

The contributor identity rule is already in the superproject's main through webcpp PR #1;
the text skill now follows the current rulebook without waiting on a separate implementation.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ what OpenSpec itself generates.
- The superproject gains `.agents/skills/`: `webcpp-library-conventions`, `webcpp-port-methodology`,
`webcpp-build-and-lanes`, `webcpp-docs-site-release` and `webcpp-text-and-commits`, and its
`AGENTS.md` names them in its introduction.
- Both repositories validate skill YAML, names and descriptions in CI.
- OpenSpec's full MIT notice is preserved in `THIRD_PARTY_NOTICES.md`.
- A requirement is added to the organization's specification: where skills live, what they may
hold, and that the rules win over them.

Expand All @@ -39,10 +41,9 @@ None.

- **Kind:** the organization (the rules' entry points for agents, in two repositories).
- **Implementation:** pull requests to https://github.com/webcpporg/proposals and
https://github.com/webcpporg/webcpp from the branch `agent-skills`. No build, lint rule or
workflow changes: the superproject's lint already reads every tracked file for the em dash and
https://github.com/webcpporg/webcpp from the branch `agent-skills`. No build or existing lint-rule changes; a dedicated metadata workflow is added: the superproject's lint already reads every tracked file for the em dash and
the banned word, and `tools/proposals.py check` every file of this repository.
- **Status:** draft.
- **Other proposals:** independent of `contributor-identity`; the skill `webcpp-text-and-commits`
states the identity rule that change proposes (each contributor commits under their own
identity), so the two should be decided together or the skill adjusted to the decision.
- **Status:** implemented in the 0.1.0 release in preparation; archived on 2026-10-13.
See `reference/STATUS.md` for merge and verification evidence. No release tag was created.
- **Other proposals:** the identity rule used by `webcpp-text-and-commits` is already in the
superproject through webcpp PR #1; this change does not archive `contributor-identity`.
Loading