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
67 changes: 67 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!-- AUTO-GENERATED by agent-core sync. Do not edit directly. -->
# next-task

> Master workflow orchestrator with autonomous task-to-production automation, quality gates, and multi-agent review

## Agents

- ci-fixer
- ci-monitor
- delivery-validator
- exploration-agent
- implementation-agent
- planning-agent
- simple-fixer
- task-discoverer
- test-coverage-checker
- worktree-manager

## Skills

- discover-tasks
- orchestrate-review
- validate-delivery

## Commands

- delivery-approval
- next-task

## Critical Rules

1. **Plain text output** - No emojis, no ASCII art. Use `[OK]`, `[ERROR]`, `[WARN]`, `[CRITICAL]` for status markers.
2. **No unnecessary files** - Don't create summary files, plan files, audit files, or temp docs.
3. **Task is not done until tests pass** - Every feature/fix must have quality tests.
4. **Create PRs for non-trivial changes** - No direct pushes to main.
5. **Always run git hooks** - Never bypass pre-commit or pre-push hooks.
6. **Use single dash for em-dashes** - In prose, use ` - ` (single dash with spaces), never ` -- `.
7. **Report script failures before manual fallback** - Never silently bypass broken tooling.
8. **Token efficiency** - Be concise. Save tokens over decorations.

## Model Selection

| Model | When to Use |
|-------|-------------|
| **Opus** | Complex reasoning, analysis, planning |
| **Sonnet** | Validation, pattern matching, most agents |
| **Haiku** | Mechanical execution, no judgment needed |

## Core Priorities

1. User DX (plugin users first)
2. Worry-free automation
3. Token efficiency
4. Quality output
5. Simplicity

## Dev Commands

```bash
npm test # Run tests
npm run validate # All validators
```

## References

- Part of the [agentsys](https://github.com/agent-sh/agentsys) ecosystem
- https://agentskills.io
25 changes: 0 additions & 25 deletions lib/discovery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,30 +297,6 @@ function getPluginPrefixRegex(repoRoot) {
return new RegExp(`(${escaped.join('|')})`, 'g');
}

/**
* Discover plugins from marketplace.json instead of scanning the filesystem.
* Used in the post-extraction world where plugins/ no longer exists in agentsys.
*
* @param {string} [repoRoot] - Repository root path
* @returns {Array<{name: string, source: string, version: string, requires: string[], core: string}>}
*/
function discoverPluginsFromMarketplace(repoRoot) {
if (!repoRoot) {
repoRoot = path.resolve(__dirname, '..', '..');
}
const marketplacePath = path.join(repoRoot, '.claude-plugin', 'marketplace.json');
if (!fs.existsSync(marketplacePath)) return [];

const marketplace = JSON.parse(fs.readFileSync(marketplacePath, 'utf8'));
return (marketplace.plugins || []).map(p => ({
name: p.name,
source: p.source,
version: p.version,
requires: p.requires || [],
core: p.core || ''
}));
}

/**
* Get all discovery results in a single call.
*
Expand Down Expand Up @@ -365,7 +341,6 @@ module.exports = {
parseFrontmatter,
isValidPluginName,
discoverPlugins,
discoverPluginsFromMarketplace,
discoverCommands,
discoverAgents,
discoverSkills,
Expand Down
25 changes: 25 additions & 0 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "@agentsys/lib",
"version": "4.2.0",
"description": "Core library for AgentSys: platform detection, pattern matching, workflow state, and utilities",
"main": "index.js",
"type": "commonjs",
"engines": {
"node": ">=18.0.0"
},
"license": "MIT",
"author": {
"name": "Avi Fenesh",
"url": "https://github.com/avifenesh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/agent-sh/agentsys.git",
"directory": "lib"
},
"files": [
"**/*.js",
"**/*.json",
"!**/*.test.js"
]
}
14 changes: 0 additions & 14 deletions lib/schemas/plugin-manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,6 @@
"type": "array",
"maxItems": 20,
"uniqueItems": true
},
"requires": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]*$"
},
"uniqueItems": true,
"description": "Other plugins this plugin depends on"
},
"core": {
"type": "string",
"pattern": "^>=\\d+\\.\\d+\\.\\d+$",
"description": "Minimum agent-core version required"
}
}
}