Skip to content

feat: refactor skills to skill-creator spec and enhance npm publishing#11

Merged
mars167 merged 4 commits intomainfrom
feature/skills-and-npm-publish
Feb 1, 2026
Merged

feat: refactor skills to skill-creator spec and enhance npm publishing#11
mars167 merged 4 commits intomainfrom
feature/skills-and-npm-publish

Conversation

@mars167
Copy link
Copy Markdown
Owner

@mars167 mars167 commented Feb 1, 2026

Summary

This PR modernizes the git-ai skill format and enhances the npm publishing workflow.

Skills Refactoring

  • Refactored git-ai-mcp skill from legacy YAML format to official skill-creator spec
  • New structure: SKILL.md with YAML frontmatter + references/ directory for detailed docs
  • Removed legacy files: skill.yaml, git-ai.yaml, RULE.md

One-Click Install Script

# Basic install (CLI only)
curl -fsSL https://raw.githubusercontent.com/mars167/git-ai-cli/main/install.sh | bash

# Full install (CLI + AI Skill)
curl -fsSL https://raw.githubusercontent.com/mars167/git-ai-cli/main/install.sh | bash -s -- --with-skill

Enhanced Release Workflow

  • Publish to npmjs.org (official registry) with provenance
  • Upgraded Node.js to v22
  • Added release summary in GitHub Actions
  • Fixed package name restoration after GitHub Packages publish

Files Changed

  • Created: install.sh, skills/git-ai-mcp/ structure
  • Modified: .github/workflows/release.yml, package.json
  • Deleted: Legacy skill/rule YAML files

Testing

After merge, to publish:

  1. Add NPM_TOKEN secret in GitHub repo settings
  2. Create tag: git tag v2.3.0 && git push origin v2.3.0

- Add npm-publish.yml workflow for automatic npm publishing
- Support both automatic (version tags) and manual (workflow_dispatch) publishing
- Includes test -> publish -> version bump pipeline
- Supports NPM_TOKEN and OIDC authentication
- Add keywords for discoverability
- Add os field for platform support
- Add funding field for sponsorship
- Improves npm package quality score
- Add logo.png at the top of README.md
- Center-aligned logo for better presentation
- Refactor git-ai-mcp skill to follow skill-creator standard
  - Use SKILL.md with YAML frontmatter (name + description)
  - Add references/tools.md for complete tool documentation
  - Add references/constraints.md for behavioral rules
  - Remove legacy YAML-based skill format

- Add one-click install script (install.sh)
  - Support --with-skill flag for AI agent skill installation
  - Colorful output with prerequisites check
  - Compatible with shells.sh distribution

- Enhance GitHub Actions release workflow
  - Publish to both GitHub Packages and npmjs.org
  - Add npm provenance for package verification
  - Add workflow summary for release tracking
  - Remove redundant npm-publish.yml

- Update package.json to include skills/ and install.sh
@mars167 mars167 merged commit e35b8cb into main Feb 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant