It is sometimes difficult to work out what object a PHID is referring to. For me, it usually involves querying the database. It would be useful if there was a ./bin/lookup script which could be used to query objects based on their PHID (or some other identifier).
An example of how I imagine this would be used:
> ./bin/lookup PHID-REPO-ffrhepqxcgyorisvabky Repository rX > ./bin/lookup PHID-CMIT-sr6zv7bzzfyql4vfn6cv Commit rXcfb048ca2d5fab185f56b316c86f792b1a4ce08d.