Skip to content

Commit d6f0c1e

Browse files
authored
Merge pull request #179 from PostHog/fury-road-remove-llm-prompts
delete llm-prompts directory, move og posthog integration instruction…
2 parents 62e3f4b + b831e4c commit d6f0c1e

43 files changed

Lines changed: 106 additions & 354 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ examples/
4646
│ ├── react-tanstack-router-code-based/ # React with TanStack Router (code-based)
4747
│ ├── tanstack-start/ # TanStack Start
4848
│ └── django/ # Django
49-
├── llm-prompts/ # Workflow guides for AI agents
50-
├── mcp-commands/ # MCP command prompts (`/command` in agents, can wrap `llm-prompts`)
49+
├── mcp-commands/ # MCP command prompts (`/command` in agents)
5150
└── scripts/ # Build scripts
5251
```
5352

@@ -68,14 +67,14 @@ Run `npm run build:docs` to generate:
6867
### Manifest structure
6968

7069
The manifest defines:
71-
- **Workflows**: Step-by-step guides with automatic next-step linking
70+
- **Skills**: Bundled skill packages, each containing a `SKILL.md`, `references/` step files, and any docs/example content
7271
- **Docs**: PostHog documentation URLs (fetched at runtime)
7372
- **Prompts**: MCP command prompts with template variable substitution
7473
- **Templates**: Resource templates for parameterized access (e.g., `posthog://examples/{framework}`)
7574

7675
### Adding new resources
7776

78-
**Workflows**: Add markdown files to `llm-prompts/[category]/` following the naming convention `[order].[step]-[name].md`
77+
**Skill step files**: Add numbered markdown files to `transformation-config/skills/<skill>/references/` following the convention `<n>-<name>.md` with `next_step:` frontmatter pointing to the next file.
7978

8079
**Examples**: Add new example projects to `basics/` and configure in `scripts/build-examples-mcp-resources.js`
8180

@@ -90,8 +89,6 @@ The build script automatically discovers, orders, and generates URIs for all res
9089
- **Easy to extend**: Add resources by creating properly named files
9190
- **Version controlled**: Resources evolve with the examples
9291

93-
See `llm-prompts/README.md` for detailed workflow conventions.
94-
9592
## Security scanning
9693

9794
Before we ship any skills, we run them through [the warlock](https://github.com/PostHog/warlock), PostHog's security scanner for agentic flows. It reads the built skill bundles and looks for prompt-injection attempts and other risky content that could trick an agent downstream. An LLM triage pass then sorts the real threats from the false positives, so we're not chasing noise.

llm-prompts/README.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

mcp-commands/posthog-setup.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async function main() {
4545
const distDir = path.join(repoRoot, 'dist');
4646
const skillsDir = path.join(distDir, 'skills');
4747
const tempDir = path.join(distDir, 'skills-temp');
48-
const promptsDir = path.join(repoRoot, 'llm-prompts');
4948

5049
try {
5150
fs.mkdirSync(skillsDir, { recursive: true });
@@ -54,7 +53,6 @@ async function main() {
5453
repoRoot,
5554
configDir,
5655
outputDir: tempDir,
57-
promptsDir,
5856
version: BUILD_VERSION,
5957
});
6058

scripts/dev-server.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const repoRoot = path.join(import.meta.dirname, '..');
4949
const configDir = path.join(repoRoot, 'transformation-config');
5050
const distDir = path.join(repoRoot, 'dist');
5151
const skillsDir = path.join(distDir, 'skills');
52-
const promptsDir = path.join(repoRoot, 'llm-prompts');
5352
const skillsSourceDir = path.join(configDir, 'skills');
5453
const basicsDir = path.join(repoRoot, 'basics');
5554

@@ -105,7 +104,6 @@ async function runPartialRebuild(ids) {
105104
repoRoot,
106105
configDir,
107106
distDir,
108-
promptsDir,
109107
version: BUILD_VERSION,
110108
docContents,
111109
log: console.log,

scripts/lib/build-phases.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ async function partialRebuild({
241241
repoRoot,
242242
configDir,
243243
distDir,
244-
promptsDir,
245244
version,
246245
docContents,
247246
log = console.log,
@@ -259,7 +258,6 @@ async function partialRebuild({
259258
repoRoot,
260259
configDir,
261260
outputDir: tempDir,
262-
promptsDir,
263261
version,
264262
});
265263

0 commit comments

Comments
 (0)