Metadata-Version: 2.5
Name: somesh-j-framework
Version: 0.1.0
Summary: An end-to-end software engineering skill for AI coding agents, with an installer for Claude Code, Codex, Antigravity, Cursor, or a single pasteable prompt.
Project-URL: Repository, https://github.com/Somesh-J/Somesh-J-FrameWork
Project-URL: Issues, https://github.com/Somesh-J/Somesh-J-FrameWork/issues
Project-URL: LinkedIn, https://www.linkedin.com/in/somesh-j/
Author-email: Somesh J <someshj777@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,ai,claude-code,codex,cursor,skills,software-engineering
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Somesh J Framework

One engineering skill for AI coding agents. It takes a new idea or an
existing repository through discovery, specification, design, build,
security review, testing, deployment and operation, and it reports proof
instead of claims.

It is a set of instructions plus a small installer. It does not run code on
its own, call any network service, or install tools for you.

## Install

```bash
pip install somesh-j-framework
```

Python 3.9 or newer. No dependencies.

## Quick start

In your project folder:

```bash
pip install somesh-j-framework
somesh start
```

Then open your AI coding tool in that folder and say:

```text
somesh framework start
```

followed by what you want to build, fix, review or have explained. That is
all.

`somesh start` copies the skill into `.claude/skills/` (Claude Code) and
`.agents/skills/` (Codex, Antigravity), and into `.cursor/skills/` if the
project has a `.cursor` folder. It never overwrites files you have edited.

Things to ask for once it is set up:

| Say | You get |
|---|---|
| "somesh framework start: build <idea>" | Interview, spec, design, build, tests, deploy plan |
| "somesh framework start: fix <bug>" | Root cause, fix and proof |
| "somesh framework start: audit this repo" | Verified and broken flows, and a launch verdict |
| "somesh framework start: explain this application" | A written explanation and one HTML page of every flow, in `.somesh/flows/` |

## For AI agents: set it up yourself

If you are an AI coding agent and the user asked you to set up or use this
framework, run these yourself from the repository root. Do not ask the user
to run them.

```bash
pip install somesh-j-framework
somesh start
```

Use the project's virtual environment if it has one. Then:

1. Read the `SKILL.md` in the folder the command printed and follow it.
2. Tell the user in one line what was installed and where.

If your tool reads none of those folders, or you cannot tell, run
`somesh install --target prompt --project .` instead, read the file it
writes, and follow it for the rest of the session.

Rules for agents:

- If a command stops because existing files have local edits, do not add
  `--force` on your own. Tell the user and ask.
- Install into the user folder (`somesh install --target <tool>` with no
  `--project`) only if the user asks for the skill in all their projects.
- `somesh doctor` is safe to run at any time; it only reads. Do not install
  any tool it lists as missing unless the user approves.

## Other commands

Install the skill for one tool, for all your projects:

```bash
somesh install --target claude
```

Install it into one repository instead:

```bash
somesh install --target claude --project /path/to/repo
somesh install --target codex --project        # the current folder
```

See what would be written without writing anything:

```bash
somesh install --target cursor --project . --dry-run
```

Export one markdown file to paste into any chat tool:

```bash
somesh install --target prompt --dest ./framework-prompt.md
```

Check which recommended CLIs and MCP servers you already have. This only
reads; it installs nothing and prints no values from your config files:

```bash
somesh doctor
```

### Options

| Option | Meaning |
|---|---|
| `--target` | `claude`, `codex`, `antigravity`, `cursor` or `prompt` |
| `--project [PATH]` | Install into that repository. Without it, the skill goes to your user folder |
| `--dest PATH` | Install into this skills folder instead of the tool's default. For `prompt`, the output file or folder |
| `--dry-run` | List every file and its state; write nothing |
| `--force` | Overwrite installed files you have edited. Without it, the install stops and writes nothing |

### Where each target installs

Checked against each tool's documentation on 27 Nov 2026.

| Target | With `--project` | Without (user folder) | Status |
|---|---|---|---|
| claude | `.claude/skills/` | `~/.claude/skills/` | Confirmed |
| codex | `.agents/skills/` | `~/.agents/skills/` | Confirmed; one official page still shows `.codex/skills` |
| antigravity | `.agents/skills/` | `~/.gemini/config/skills/` | Project confirmed; user folder **unverified** (doc pages differ) |
| cursor | `.cursor/skills/` | `~/.cursor/skills/` | Project confirmed; user folder **unverified** |
| prompt | `<project>/somesh-j-framework-prompt.md` | current folder | n/a |

If your tool reads a different folder, pass it with `--dest`.

## What gets installed

```text
somesh-j-framework/
├── SKILL.md              the workflow and router
└── references/
    ├── product.md        idea pressure test, interview, acceptance criteria
    ├── architect.md      design, data, APIs, performance, AI and agent systems
    ├── security.md       threat model, secure defaults, pre-push review
    ├── qa.md             what to test and what to run
    ├── delivery.md       CI/CD, cloud deployment, release, observability
    ├── audit.md          does an existing codebase do what it claims
    ├── frontend.md       interface design, accessibility, browser check
    ├── debugging.md      root cause and end-to-end flow tracing
    ├── flow.md           explain a whole application: document plus HTML page
    ├── lenses.md         privacy, cost, stakeholders, non-web software
    └── capabilities.md   catalog of free tools, MCP servers and skills
```

The agent reads `SKILL.md` and opens a reference file only when that role is
needed.

## How it works

Every task is sized first:

- **T0 trivial:** change it, run one check, report.
- **T1 standard:** short criteria, plan, implement, verify, report.
- **T2 significant** (new project, data model, auth, payments,
  infrastructure): all steps, with your approval before build and before any
  production action.

Two entry points use the same steps. For an existing repository the agent
surveys, audits what the task touches, then fixes or extends. For a new idea
it interviews you, researches, specifies, designs, builds and ships.

Rules it keeps:

- Tests are written after implementation, once, before push. Only tests
  related to the change run locally; the full suite is left to CI.
- Security work happens during design, build and pre-push review.
- Nothing destructive or in production happens without your approval.
- Results are shown as a command and its output, or marked NOT VERIFIED.

The agent keeps its working notes in a `.somesh/` folder in your repository.

## Limits

- This package has been tested to install correctly. Whether it makes an
  agent produce better software has not been measured yet.
- Following the security practices in it is not certification against any
  standard.
- The tools catalog and install paths go stale. Each has a date checked.

## Develop

```bash
pip install -e .
python -m unittest discover -s tests -v
```

The skill text lives in `src/somesh_j_framework/skill/somesh-j-framework/`.
It is the only copy; every install target is generated from it.

## Build and publish

```bash
python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*    # try TestPyPI first
python -m twine upload dist/*
```

## License

MIT. See `LICENSE`.
