demo-update
Skill25 starsChanged 8 days agoUnlicenseView on GitHub
Update an existing JEP demo in demos-java to a newer preview, incubator, or final iteration, linking earlier demos to the new implementation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AnjanJ/rails_error_dashboardtheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AnjanJ/rails_error_dashboard★ 93same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- article-addSkill
- demo-createSkill
- pr-createSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Follow CONTRIBUTING.md and the existing demo's style.
- Very specific: line 15
Read https://openjdk.org/jeps/<new-jep-number> and predecessor pages as needed to establish the full feature chain, official titles, JDK …
- Distinctive: line 18
Check whether any earlier stub already links to the demo being superseded (a chain may span 3+ releases).
- Very specific: line 23
Use a /// header with a feature/status summary, required runtime flags, concise API-change notes per intervening release, newest-first JEP …
- Very specific: line 31
Update each affected src/main/resources/JDK<jdk>Info.json:
- Very specific: line 35
Import and register the new demo and newly created stubs in their respective src/main/java/org/javademos/init/Java<jdk>DemoLoader.java.
- Very specific: line 37
Run mvn clean install and the jar using the command in CONTRIBUTING.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update a JEP Demo
Inputs: the new JEP number and the JEP number holding the current implementation. Ask for any missing input. For a JEP without predecessors, use demo-create instead. Follow CONTRIBUTING.md and the existing demo's style.
Workflow
- Read
https://openjdk.org/jeps/<new-jep-number>and predecessor pages as needed to establish the full feature chain, official titles, JDK releases, and API changes. Locate the existing implementation, earlier stubs, JSON entries, and loaders. Identify missing iterations between the existing and new JEPs. Check whether any earlier stub already links to the demo being superseded (a chain may span 3+ releases); it must be re-pointed too. If a similar multi-release chain already exists in the repo, use it as a template. - Port the implementation to
org.javademos.java<jdk>.jep<newJep>, keeping the class name unchanged and startingdemo()withinfo(<newJep>). Check the installed JDK and API signatures, and adapt the code to the new API with small runnable examples of notable changes. Use a///header with a feature/status summary, required runtime flags, concise API-change notes per intervening release, newest-first JEP history using official titles, and relevant reading links. Retain existing reading links and author attribution. - Convert every superseded demo in the chain to a linking stub; create stubs for missing intermediate
iterations too. Each stub keeps its original JDK/JEP package, class name, and author, but its
///doc comment shrinks to a one-line summary plus a "replaced by" pointer (drop API-change notes, JEP history, and reading links, which belong only on the current implementation). It calls onlyinfo(<itsJep>)indemo(), and has an@seepointing directly to the new implementation, never another stub. - Update each affected
src/main/resources/JDK<jdk>Info.json:- Old and intermediate entries:
"link": true,"code": false, anddscrset toUp-to-date demo in `org.javademos.java<jdk>.jep<newJep>.<ClassName>`. - New implementation: the actual title/description,
"link": false,"code": true. Import and register the new demo and newly created stubs in their respectivesrc/main/java/org/javademos/init/Java<jdk>DemoLoader.java. Keep JSON and loader entries in ascending JEP order.
- Old and intermediate entries:
- Run
mvn clean installand the jar using the command in CONTRIBUTING.md. Inspect the chain by appending--only=<jep1>,<jep2>,...to the jar command (other demos print exceptions on purpose). Confirm every JEP in the chain prints its header without exceptions and the new examples produce expected output. Check all earlier@seeand JSONdscrreferences point to the new implementation, and review the diff for unrelated changes. - Branch, commit, and open the PR by following pr-create for
<new-jep-number>.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

