Skip to content

Commit 49e3437

Browse files
avifeneshagent-core-bot
andauthored
chore: sync core lib and CLAUDE.md from agent-core (#2)
Co-authored-by: agent-core-bot <noreply@agent-sh.github.io>
1 parent 0f7ebe6 commit 49e3437

4 files changed

Lines changed: 95 additions & 39 deletions

File tree

CLAUDE.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<!-- AUTO-GENERATED by agent-core sync. Do not edit directly. -->
2+
# enhance
3+
4+
> Plugin structure and tool use analyzer - validates plugin.json, MCP tools, and security patterns
5+
6+
## Agents
7+
8+
- agent-enhancer
9+
- claudemd-enhancer
10+
- cross-file-enhancer
11+
- docs-enhancer
12+
- hooks-enhancer
13+
- plugin-enhancer
14+
- prompt-enhancer
15+
- skills-enhancer
16+
17+
## Skills
18+
19+
- enhance-agent-prompts
20+
- enhance-claude-memory
21+
- enhance-cross-file
22+
- enhance-docs
23+
- enhance-hooks
24+
- enhance-orchestrator
25+
- enhance-plugins
26+
- enhance-prompts
27+
- enhance-skills
28+
29+
## Commands
30+
31+
- enhance
32+
33+
## Critical Rules
34+
35+
1. **Plain text output** - No emojis, no ASCII art. Use `[OK]`, `[ERROR]`, `[WARN]`, `[CRITICAL]` for status markers.
36+
2. **No unnecessary files** - Don't create summary files, plan files, audit files, or temp docs.
37+
3. **Task is not done until tests pass** - Every feature/fix must have quality tests.
38+
4. **Create PRs for non-trivial changes** - No direct pushes to main.
39+
5. **Always run git hooks** - Never bypass pre-commit or pre-push hooks.
40+
6. **Use single dash for em-dashes** - In prose, use ` - ` (single dash with spaces), never ` -- `.
41+
7. **Report script failures before manual fallback** - Never silently bypass broken tooling.
42+
8. **Token efficiency** - Be concise. Save tokens over decorations.
43+
44+
## Model Selection
45+
46+
| Model | When to Use |
47+
|-------|-------------|
48+
| **Opus** | Complex reasoning, analysis, planning |
49+
| **Sonnet** | Validation, pattern matching, most agents |
50+
| **Haiku** | Mechanical execution, no judgment needed |
51+
52+
## Core Priorities
53+
54+
1. User DX (plugin users first)
55+
2. Worry-free automation
56+
3. Token efficiency
57+
4. Quality output
58+
5. Simplicity
59+
60+
## Dev Commands
61+
62+
```bash
63+
npm test # Run tests
64+
npm run validate # All validators
65+
```
66+
67+
## References
68+
69+
- Part of the [agentsys](https://github.com/agent-sh/agentsys) ecosystem
70+
- https://agentskills.io

lib/discovery/index.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -297,30 +297,6 @@ function getPluginPrefixRegex(repoRoot) {
297297
return new RegExp(`(${escaped.join('|')})`, 'g');
298298
}
299299

300-
/**
301-
* Discover plugins from marketplace.json instead of scanning the filesystem.
302-
* Used in the post-extraction world where plugins/ no longer exists in agentsys.
303-
*
304-
* @param {string} [repoRoot] - Repository root path
305-
* @returns {Array<{name: string, source: string, version: string, requires: string[], core: string}>}
306-
*/
307-
function discoverPluginsFromMarketplace(repoRoot) {
308-
if (!repoRoot) {
309-
repoRoot = path.resolve(__dirname, '..', '..');
310-
}
311-
const marketplacePath = path.join(repoRoot, '.claude-plugin', 'marketplace.json');
312-
if (!fs.existsSync(marketplacePath)) return [];
313-
314-
const marketplace = JSON.parse(fs.readFileSync(marketplacePath, 'utf8'));
315-
return (marketplace.plugins || []).map(p => ({
316-
name: p.name,
317-
source: p.source,
318-
version: p.version,
319-
requires: p.requires || [],
320-
core: p.core || ''
321-
}));
322-
}
323-
324300
/**
325301
* Get all discovery results in a single call.
326302
*
@@ -365,7 +341,6 @@ module.exports = {
365341
parseFrontmatter,
366342
isValidPluginName,
367343
discoverPlugins,
368-
discoverPluginsFromMarketplace,
369344
discoverCommands,
370345
discoverAgents,
371346
discoverSkills,

lib/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@agentsys/lib",
3+
"version": "4.2.0",
4+
"description": "Core library for AgentSys: platform detection, pattern matching, workflow state, and utilities",
5+
"main": "index.js",
6+
"type": "commonjs",
7+
"engines": {
8+
"node": ">=18.0.0"
9+
},
10+
"license": "MIT",
11+
"author": {
12+
"name": "Avi Fenesh",
13+
"url": "https://github.com/avifenesh"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/agent-sh/agentsys.git",
18+
"directory": "lib"
19+
},
20+
"files": [
21+
"**/*.js",
22+
"**/*.json",
23+
"!**/*.test.js"
24+
]
25+
}

lib/schemas/plugin-manifest.schema.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@
5252
"type": "array",
5353
"maxItems": 20,
5454
"uniqueItems": true
55-
},
56-
"requires": {
57-
"type": "array",
58-
"items": {
59-
"type": "string",
60-
"pattern": "^[a-z][a-z0-9-]*$"
61-
},
62-
"uniqueItems": true,
63-
"description": "Other plugins this plugin depends on"
64-
},
65-
"core": {
66-
"type": "string",
67-
"pattern": "^>=\\d+\\.\\d+\\.\\d+$",
68-
"description": "Minimum agent-core version required"
6955
}
7056
}
7157
}

0 commit comments

Comments
 (0)