prompt-preflight

v0.3.1 safe
2.9
Low Risk

Prompt pre-flight: rewrite rough prompts into clearer ones with Claude Haiku before they reach a stronger model.

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 13 test file(s) found

  • Test runner config found: pyproject.toml
  • 13 test file(s) detected (e.g. test_cli.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (23921 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 7.0

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • Type checker (mypy / pyright / pytype) referenced in project
  • 107 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • https" else 80) raw = socket.create_connection((host, port), timeout=self._cfg.proxy_connect_timeout)
  • /stats" try: with urllib.request.urlopen(url, timeout=3) as resp: # noqa: S310 -- local
  • ("/") + "/api/chat" req = urllib.request.Request(url, data=body, headers={"Content-Type": "applicatio
  • json"}) try: with urllib.request.urlopen(req, timeout=timeout) as resp: # noqa: S310 -- loca
  • ]}], } conn = http.client.HTTPConnection("127.0.0.1", port, timeout=60) conn.request(
  • ]}], } conn = http.client.HTTPConnection("127.0.0.1", pport, timeout=10) conn.request(
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • False try: proc = subprocess.run(cmd, input=text, text=True, encoding="utf-8") return
  • loop forever. proc = subprocess.run( cmd, capture_output=True, text=True, encoding="
  • ext) try: subprocess.run([editor, path]) except OSError: sys.stde
  • ) try: subprocess.run([editor, path]) except OSError as exc: s
  • None: try: proc = subprocess.run([binpath, "--version"], capture_output=True, text=True, time
  • are, ) return subprocess.run( cmd, input=raw_prompt, # prompt vi
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • till a hard token assert "/etc/hosts" in safety.important_tokens("edit /etc/hosts now") asse
  • safety.important_tokens("edit /etc/hosts now") assert any("config" in t for t in safety.importan
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Samit Mohnot" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with prompt-preflight
Build a simple Python application using the prompt-preflight package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!