site-generation
Skill0 starsChanged 13 days agoApache-2.0View on GitHub
Builds and publishes the PkDE static dossier site (pkde site build) and the unified PkDE interactive standalone UI dashboard (pkde dashboard build --standalone).
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- GoogleCloudPlatform/LifeSciencesedited, first seen Oct 13, 2026
- heymegabyte/agent-skillstheir own version, first seen Oct 6, 2026
- heymegabyte/claude-skillstheir own version, first seen Oct 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- GoogleCloudPlatform/LifeSciences★ 5788% same
Wrote their own version · 2
- heymegabyte/agent-skills★ 26same name
- heymegabyte/claude-skills★ 26same 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 repository43 other files it gives its agents.
- pharmakon-discovery-engineSkill
- admet-property-predictionSkill
- artifact-conventionsSkill
- binding-mode-analysisSkill
- bioactivity-landscapeSkill
- brain-atlasSkill
- citation-resolutionSkill
- citation-verificationSkill
- competitive-differentiationSkill
- compound-identity-resolutionSkill
- compound-property-profileSkill
- debate-protocolSkill
- disease-transcriptomicsSkill
- elo-tournamentSkill
- evolution-operatorsSkill
- hypex-tool-setupSkill
- hypothesis-entrySkill
- hypothesis-run-corpusSkill
- hypothesis-schemaSkill
- in-vivo-pk-analysisSkill
- literature-searchSkill
- manufacturing-feasibilitySkill
- meta-review-protocolSkill
- model-organism-phenotypeSkill
- pharmakon-discovery-engineSkill
- pkde-dashboardSkill
- pocket-druggabilitySkill
- preclinical-safety-assessmentSkill
- program-state-managementSkill
- protein-structure-confidenceSkill
- proximity-protocolSkill
- regulatory-variant-effectSkill
- review-rubricSkill
- run-protocolSkill
- safety-screenSkill
- sar-series-analysisSkill
- single-cell-expressionSkill
- stage1-gate-evaluationSkill
- structure-screeningSkill
- structure-similarity-searchSkill
- target-genetic-evidenceSkill
- tissue-expression-profileSkill
- tournament-corpusSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 8 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
When running inside a managed agent environment, retrospectives live on the shared volume.
- Very specific: line 58
Write or update executive/program-summary.md before building.
- Distinctive: line 83
Use inline math for values in running text (potency, IC50).
- Distinctive: line 86
Do not use HTML entities or Unicode workarounds for math that LaTeX handles natively.
- Distinctive: line 87
Do not wrap math in code fences or backtick spans -- those prevent rendering.
- Distinctive: line 88
Do not mix delimiter styles within the same expression.
- Very specific: line 150
CDN constraint: All external scripts load from cdn.jsdelivr.net only.
- Very specific: line 154
After pkde site build completes and before verification, run a post-build orchestrator to fix known rendering gaps in the build output.
- Very specific: line 171
Run postbuild.py (the orchestrator) against _site/.
- Distinctive: line 219
When content is owned by this program, fix the source markdown so the correction survives future rebuilds.
- Very specific: line 223
Run references/fix_infra_refs.py after each build to detect infrastructure details that leaked into generated HTML.
- Distinctive: line 233
After post-build processing, verify:
- Very specific: line 251
Default output: <project-slug>-site.zip in the project root.
- Very specific: line 254
If raw/ is not bundled in the site directory, the command prints a warning to stderr.
- Distinctive: line 277
After building, an agent can serve the site locally so stakeholders can view it in a browser.
- Very specific: line 296
Use pkde dashboard build --standalone or pkde dashboard serve --port 8765:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Site Generation
How the project curator builds, post-processes, and verifies the navigable HTML website from the drug discovery program's artifact hierarchy. This skill covers when to trigger a build, how to invoke the CLI, what the build produces, how to apply post-build fixes for known rendering gaps, and how to verify the output. It complements artifact-conventions (which governs the source artifacts) and program-state-management (which governs the Layer 2 documents that feed the site).
When to Build
Trigger pkde site build whenever the source material has changed in a way that should be reflected on the site:
- A new work order has been accepted
- Program state documents have been updated
- A new gate document has been written
- The executive summary has been updated
- New findings have been added
How to Build
Basic Build
pkde site buildBy default, raw/ artifacts are copied into _site/raw/ so the built site is self-contained. Viewer ?file= URLs resolve within the site directory. To disable bundling and revert to the previous layout where viewers reference raw/ outside the site tree, pass --no-bundle-raw:
pkde site build --no-bundle-rawWith Retrospectives (Managed Agent Environments)
When running inside a managed agent environment, retrospectives live on the shared volume. Pass them explicitly so the build can include them:
pkde site build --retrospectives-dir retrospectives/Output
- Output directory:
_site/(default, configurable via--output-dir) _site/raw/contains a filtered copy of the project'sraw/data artifacts (excludes hidden files,__pycache__,.pyc,.DS_Store). Omitted when--no-bundle-rawis passed.- Atomic build: writes to a temp directory, then moves into place
- Records build in
publish-state.json - Appends a
site.publishedevent to the event log
Content Preparation
The CLI renders content -- it does not generate it. The agent must prepare and maintain the source material before building.
Executive Summary
- Write or update
executive/program-summary.mdbefore building. - The landing page shows a truncated excerpt with a "Read more" link.
Program State
- Maintain the four documents in
program-state/(active-series.md,liability-tracker.md,decision-log.md,open-questions.md). - The CLI renders each as a separate page with markdown-to-HTML conversion.
Findings Organization
- Organize findings by discipline subdirectory:
findings/<discipline>/. - The sidebar groups findings by discipline automatically.
- The CLI renders markdown to HTML.
Math in Markdown
The build supports LaTeX math rendering via the mistune math plugin and vendored KaTeX.
Supported delimiters:
- Inline math:
$...$or\(...\) - Display math:
$$...$$or\[...\]
Usage:
- Standard LaTeX math commands work:
\text{},\times,\approx, subscripts, superscripts, Greek letters, fractions. - Example:
$K_i \approx 5.6\ \text{nM}$renders as formatted math. - Use inline math for values in running text (potency, IC50). Use display blocks for complex equations.
Avoid:
- Do not use HTML entities or Unicode workarounds for math that LaTeX handles natively.
- Do not wrap math in code fences or backtick spans -- those prevent rendering.
- Do not mix delimiter styles within the same expression.
Build interaction:
- The mistune math plugin tokenises math spans during markdown-to-HTML conversion.
- KaTeX auto-render processes the output HTML client-side.
- KaTeX CSS, JS, and fonts are vendored alongside the site (same mechanism as viewers), so relocatable archives and offline copies render math without network access.
Page Types
The build produces the following page types:
| Page Type | Source | Template | Notes |
| Landing page | All collected data | index.html | Executive excerpt, WO table, finding/artifact links |
| Finding | findings/**/*.md via accepted WOs | finding.html | Rendered markdown, viewer links |
| Artifact class | raw/<class>/ via accepted WOs | artifact.html | File listing with viewer links |
| Work order | Accepted WOs from controlstore | workorder.html | Full WO metadata, linked findings/artifacts |
| Program state | program-state/*.md | program_state.html | Rendered markdown |
| Gate document | gates/stage*/*.md | gate.html | Stage metadata, rendered markdown |
| Executive summary | executive/program-summary.md | executive.html | Rendered markdown |
| Retrospectives | --retrospectives-dir | retrospectives.html | Rendered markdown, only if flag provided |
Viewer Catalog
Because raw/ is bundled into _site/ by default, viewer ?file= URLs resolve within the site directory (../raw/...). This means viewers work correctly in exported archives and on static file hosts without path patching. When --no-bundle-raw is used, viewer URLs revert to the previous external-path layout (../../raw/...).
The site includes 13 auto-wired specialized HTML viewers for scientific data files, plus one additional viewer not yet wired to a file extension. Viewers are standalone HTML files that load data via ?file= query parameters. Viewers listed below are wired automatically by file extension via the VIEWER_MAP in site.py -- the agent does not need to configure viewer wiring. One additional viewer (contacts-viewer.html) is included in the site but not yet wired to a file extension.
Native HTML Viewers (no CDN dependencies)
| Viewer | File Pattern | What It Shows |
pockets-viewer.html | .pockets.json | Binding pocket properties table |
constraint-viewer.html | .gnomad-constraint.json | Genetic constraint metrics card |
tournament-viewer.html | .tournament.json | Hypothesis ranking table |
brics-viewer.html | .brics.json | BRICS decomposition display |
highlight.js Viewers (CDN: cdn.jsdelivr.net)
| Viewer | File Pattern | What It Shows |
json-viewer.html | .json (fallback) | Syntax-highlighted JSON |
3Dmol.js Viewers (CDN: cdn.jsdelivr.net)
| Viewer | File Pattern | What It Shows |
structure-viewer.html | .cif | 3D molecular structure (cartoon) |
sdf-viewer.html | .3d.sdf | 3D molecule (stick model) |
docking-viewer.html | .receptor.pdbqt + .poses.pdbqt | Receptor-ligand overlay |
Plotly.js Viewers (CDN: cdn.jsdelivr.net)
| Viewer | File Pattern | What It Shows |
pae-viewer.html | .pae.json | Predicted Aligned Error heatmap |
plddt-viewer.html | .afdb.json | pLDDT confidence chart |
expression-viewer.html | .tissue.json | Tissue expression bar chart |
contacts-viewer.html | .contacts.json (not yet in VIEWER_MAP) | Contact heatmap |
admet-viewer.html | .predict.json | ADMET prediction chart |
docking-scores-viewer.html | .docking_result.json | Docking score comparison |
CDN constraint: All external scripts load from cdn.jsdelivr.net only.
Post-Build Processing
After pkde site build completes and before verification, run a post-build orchestrator to fix known rendering gaps in the build output. Every fix script must be idempotent -- safe to re-run after every build without accumulating changes.
Why This Phase Exists
The build tool renders markdown to HTML deterministically but does not handle every rendering pattern. Several gaps recur across programs:
| Gap | Symptom | Fix Category |
| Pipe-delimited tables | Raw | text instead of <table> elements | Structural HTML |
| Duplicate H1 | Template injects an H1; markdown # Title adds a second | Structural HTML |
| Shared scroll context | Sidebar and main content scroll together | CSS/styling |
.md link paths | Internal links retain .md extension instead of .html | Link resolution |
| Plain-text references | Evidence/artifact references not rendered as clickable links | Link resolution |
| No theme system | Single hardcoded visual style with no user control over appearance | CSS/styling |
Execution Model
- Run
postbuild.py(the orchestrator) against_site/. - The orchestrator discovers and runs fix scripts in dependency order.
- Each script applies a detection guard -- checks whether the fix has already been applied before modifying any file.
- Recommended execution order:
- Structural HTML fixes (tables, duplicate headings)
- CSS/styling fixes (scroll context, layout)
- Link resolution (
.md->.html, artifact links) - Cosmetic passes (whitespace, formatting)
- Scan/report (summary of remaining issues)
Invoking Post-Build Processing
pkde site build
python3 postbuild.py _site/
# then verify and serveTemplate Orchestrator
A copy-and-adapt template orchestrator is provided at references/postbuild-template.py. Copy it into your project's root or site-tools/ directory, add fix functions for program-specific gaps, and invoke it after every build.
Drop-in Theme System
references/fix_add_themes.py provides a ready-to-use theme system. It injects a theme chooser dropdown into site navigation, defines five themes (Clean, Dark, Serif, Ocean, Forest) via CSS custom properties, and persists the user's choice in localStorage across pages and sessions. Add its fix_add_themes function to the orchestrator's FIXES list under the CSS/styling category.
Auto-Linking Structured Identifiers
references/fix_autolink_codes.py provides a template post-build fix that auto-discovers linkable codes (e.g. WO-001, DEC-005) from built filenames and replaces bare text references with <a> links. It avoids double-linking, self-links, and modifications inside HTML attributes, <code>, and <pre> elements. Register it in your orchestrator's FIXES list under the Link Resolution category.
Content Boundaries
Stakeholder-facing sites must present scientific substance -- not operational noise. Filter content before it reaches the built site.
What Belongs
Include: Scientific methodology, experimental results, decisions and rationale, evidence chains, program flow and gate progression, liability assessments, strategic recommendations.
Exclude: Infrastructure failures and stack traces, tool endpoint issues (gateway errors, connection refused), retry/timeout cycles, agent orchestration mechanics (cold-start delays, scheduling artifacts), debugging output, rate-limit incidents, internal tool configuration details.
Edit Strategy by Content Source
| Content source | Owned by this program? | Edit strategy |
| Program findings/decisions | Yes | Edit source markdown -- persists across rebuilds |
| Shared-volume retrospectives | No (other agents) | Post-build HTML scrub; re-apply after each rebuild |
| Build-tool generated content | No (template) | Post-build HTML transformation |
When content is owned by this program, fix the source markdown so the correction survives future rebuilds. When it is not -- retrospectives from other agents, template-generated markup -- apply post-build HTML modifications and re-apply them after every rebuild.
Scanning for Boundary Violations
Run references/fix_infra_refs.py after each build to detect infrastructure details that leaked into generated HTML. The script scans only -- it does not modify files. Review its output and apply edits using the strategy table above.
pkde site build
python3 postbuild.py _site/
python3 references/fix_infra_refs.py _site/Post-Build Verification
After post-build processing, verify:
- Exit code -- the build succeeded (check exit code and output message).
- Page count -- matches expectations (reported in build output).
- Spot-check pages -- does the landing page show the executive excerpt? Do findings render as formatted HTML (not raw markdown)?
- Viewer links -- artifact pages should show "View" links for supported file types.
- Broken links -- the build aborts on broken internal links. Report any that were found.
Exporting a Relocatable Archive
pkde site export packages the built site into a standalone .zip archive suitable for upload to any static file host.
pkde site export
pkde site export -o custom-name.zip- Prerequisite: run
pkde site buildfirst. The command validates thatindex.htmlexists in the site directory. - Default output:
<project-slug>-site.zipin the project root. - The archive contains the full
_site/tree withindex.htmlat the archive root. Hidden files and directories are excluded. - Uses
--site-dirto override the default_sitesource directory. - If
raw/is not bundled in the site directory, the command prints a warning to stderr. Viewers in the exported archive may not resolve data files without bundledraw/.
Localizing CDN Resources for Offline Use
Exported archives reference external CDN resources by default (Web Fonts, 3Dmol.js, Plotly.js, highlight.js). When opened offline or on restricted networks, viewers may not function correctly. Run references/fix_localize_cdn.py as a post-build step to download these resources into a local vendor/ directory and rewrite HTML references to use local paths:
pkde site build
python3 fix_localize_cdn.py _site/
pkde site exportThe script is idempotent and creates a vendor/manifest.json listing all localized resources. See the table below for the known CDN dependencies:
| CDN Domain | Library | Used By |
fonts.cdn.example.org / static-fonts.cdn.example.org | Web Fonts | Theme system, base styles |
cdn.jsdelivr.net/npm/3dmol | 3Dmol.js | structure-viewer, sdf-viewer, docking-viewer |
cdn.jsdelivr.net/npm/plotly | Plotly.js | pae-viewer, plddt-viewer, expression-viewer, admet-viewer, docking-scores-viewer |
cdn.jsdelivr.net/gh/highlightjs | highlight.js | json-viewer |
Serving the Generated Site
After building, an agent can serve the site locally so stakeholders can view it in a browser.
1. Serve locally
Python's http.server is always available in managed agent environments:
Reserved port: Port 8080 is reserved by the host environment. Agents must NOT bind port 8080 for any purpose. If the chosen port is already in use, try the next candidate (e.g. 8001, 8002) rather than failing.
# Try ports in order until one binds successfully
for port in 8000 8001 8002 8003; do
python3 -m http.server "$port" --directory _site/ &
sleep 1
if kill -0 $! 2>/dev/null; then echo "Serving on port $port"; break; fi
done2. Expose via Local Server
Use pkde dashboard build --standalone or pkde dashboard serve --port 8765:
pkde dashboard build --standalone # or: pkde dashboard serve --port 87653. Iterative rebuild-and-serve
For iterative workflows (rebuild -> post-process -> verify -> revise), keep the server running and rebuild in place. Each pkde site build followed by python3 postbuild.py _site/ regenerates _site/ and the served content updates immediately -- no server restart required. The agent can stay retained for revisions in this mode.
What This Skill Does NOT Cover
- Remote object-storage publishing. The
pkde site exportcommand produces archives suitable for static hosting, but remote bucket deployment is outside the scope of this skill. This skill covers generation, export, and local serving, not remote hosting. - Viewer development. Viewers are checked into the repo and are not modified at build time.
- Content authorship. The agent prepares markdown content before building; the CLI renders it deterministically.
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.

