rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HougeLangley/dsh-ubuntu-packaging
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Ubuntu/Debian source-package toolkit for DeepSeek Harness (dsh): six host tools plus the ubuntu-packaging skill for inspecting, linting, scaffolding, planning and diagnosing debian/ packages.
The tools are read-only by design, except ubuntu_scaffold_package, which writes only <sourceDir>/debian/. None of them starts a shell or touches the network: a build plan is a plan, a test plan is a plan, and a diagnosis is a reading of the log you hand it.
English | 简体中文
Install into the web or desktop profile; the commands are identical apart from the profile name.
dsh plugin --profile web add github:HougeLangley/dsh-ubuntu-packaging
curl -LO https://github.com/HougeLangley/dsh-ubuntu-packaging/releases/download/v0.1.0/dsh-ubuntu-packaging-0.1.0.tgz
dsh plugin --profile web add ./dsh-ubuntu-packaging-0.1.0.tgz
dsh plugin add also accepts the release URL in place of a downloaded path.
git clone https://github.com/HougeLangley/dsh-ubuntu-packaging.git
dsh plugin --profile web add ./dsh-ubuntu-packaging
Open Settings → Plugins, add the plugin with github:HougeLangley/dsh-ubuntu-packaging, the release .tgz, or the path to your checkout, then enable it.
Restart dsh web (or the desktop app) after any of these. The bundle is ESM with no build step. If the optional @deepseek-ai/dsh-tools peer is missing, the plugin only warns: activation still succeeds and the skill still loads.
sudo apt): dpkg-buildpackage, sbuild, lintian and autopkgtest. Each plan lists the prerequisites it needs. On Ubuntu 25.10 and newer, sbuild's unshare backend is the recommended one; schroot is legacy.| Tool | What it does | Network | Writes files |
|---|---|---|---|
ubuntu_inspect_package |
Parses debian/ and returns a normalized view: layout, changelog, deb822 control, rules, source/format, DEP-3 patches and DEP-8 tests, plus the lint issues it finds. |
No | No |
ubuntu_lint_package |
Static checks with stable, lintian-compatible codes: missing debian/ files, changelog/control mismatches, debhelper compat, Rules-Requires-Root, DEP-5 copyright, debian/watch, quilt series and DEP-8 tests. strict: true turns warnings into a failure. |
No | No |
ubuntu_scaffold_package |
Generates a validated debian/ skeleton: control, rules, changelog, DEP-5 copyright, source/format, a watch file when a homepage is given, and a DEP-8 smoke test when tests are enabled. Refuses an existing debian/ unless overwrite: true. |
No | Yes, <sourceDir>/debian/ only |
ubuntu_build_plan |
Produces an ordered, release-aware build plan: tooling, source preparation, sbuild / dpkg-buildpackage / debuild, artifact inspection, lintian, sign and upload notes. |
No | No |
ubuntu_test_plan |
Produces a test plan: lintian, install/smoke/remove/purge, DEP-8 debian/tests, autopkgtest on LXD, QEMU and PPA, plus failure triage. |
No | No |
ubuntu_diagnose_build |
Reads a build log (inline text or a file path you pass) and returns findings with evidence, cause, a concrete fix and a documentation link. | No | No |
Every tool accepts absolute or working-directory-relative paths and reports errors that name the file and the rule.
ubuntu-packaging skillThe bundle also registers a runtime skill, ubuntu-packaging, so an agent can run the whole loop without further reading: the resolute/questing/noble baseline, source versus binary packages, version strings, building with dpkg-buildpackage / sbuild / debuild / gbp, testing with lintian / autopkgtest / piuparts / reprotest, PPA and archive release steps, the FTBFS and autopkgtest fix playbook, changelog discipline, DEP-3 patches, DEP-5 copyright, debian/watch, and a troubleshooting table. Reference sheets live in skills/ubuntu-packaging/references/.
Inspect a package before upload
Inspect
./hello-2.10and tell me what would fail review: changelog versus control mismatch, debhelper compat, missing DEP-5 fields, malformed patches. Then fix the lint errors you find.
Generate a debian/ skeleton
Scaffold a
debian/directory for./hello-2.10: packagehello, upstream 2.10,-0ubuntu1, targetresolute, maintainerJane Doe <jane@example.com>, homepagehttps://www.gnu.org/software/hello/, licenseGPL-3+, autotools build, and include a DEP-8 smoke test.
Diagnose a failed build
Here is my sbuild log. Why did it fail, which
Build-Dependsline indebian/controlis missing, and what exactly should I patch?
uscan, or uploads anything. ubuntu_scaffold_package does not fetch an upstream tarball.ubuntu_scaffold_package writes only inside <sourceDir>/debian/, and refuses to touch an existing debian/ unless you pass overwrite: true.ubuntu_diagnose_build reads only the log text or log file path you provide. It does not fetch a remote log.package.json bundle manifest, dsh.bundle patch, test script
cordis.patch.yml inserts the ubuntu-packaging plugin
lib/
index.js activation, six tools, skill registration
parse.js deb822, changelog, rules, series, DEP-8 parsing
lint.js lintian-compatible rules
scaffold.js debian/ generator
buildplan.js build planning
testplan.js test planning
diagnose.js build log triage
skills/ubuntu-packaging/
SKILL.md the methodology the agent follows
references/ debian-reference, build-test-release, fix-playbook, sources
docs/ DETAIL.md, preview.svg, MARKETPLACE.md, SOURCES.md
locale/ en.json, zh.json
tests/ node:test suites for parsing, lint and the tools
Node.js 22 or newer, no install step required:
npm test # node --test "tests/**/*.test.mjs"
node --check lib/index.js
The suite uses the built-in node:test runner with fixture packages. It needs no Ubuntu toolchain: the tool tests assert on parsed results and generated debian/ text.
MIT © 2026 HougeLangley. See LICENSE. Changes are recorded in CHANGELOG.md; marketplace submission material lives in docs/MARKETPLACE.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。